Commit f686506d by Tycho Andersen

c/r: free valid_opts if necessary

2cb80427 introduced a malloc without a matching free. Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
parent f8650a7a
......@@ -4007,6 +4007,9 @@ static int do_lxcapi_migrate(struct lxc_container *c, unsigned int cmd,
ret = -EINVAL;
}
if (size < sizeof(*opts))
free(valid_opts);
return ret;
}
......
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