Commit b6f24d54 by Serge Hallyn

fix resource leak of utsname in error path found by coverity

parent a6537fbb
......@@ -1344,6 +1344,7 @@ static int config_utsname(const char *key, const char *value,
if (strlen(value) >= sizeof(utsname->nodename)) {
ERROR("node name '%s' is too long",
utsname->nodename);
free(utsname);
return -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment