Commit 022de5f3 by Serge Hallyn

fix resource leak of netdev on error path found by coverity

parent b6f24d54
......@@ -272,6 +272,7 @@ static int config_network_type(const char *key, const char *value,
list = malloc(sizeof(*list));
if (!list) {
SYSERROR("failed to allocate memory");
free(netdev);
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