Commit 13dbc780 by Christian Brauner Committed by GitHub

Merge pull request #1185 from tych0/free-valid-opts-if-necessary

c/r: free valid_opts if necessary
parents f8650a7a f686506d
...@@ -4007,6 +4007,9 @@ static int do_lxcapi_migrate(struct lxc_container *c, unsigned int cmd, ...@@ -4007,6 +4007,9 @@ static int do_lxcapi_migrate(struct lxc_container *c, unsigned int cmd,
ret = -EINVAL; ret = -EINVAL;
} }
if (size < sizeof(*opts))
free(valid_opts);
return ret; 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