Commit 41670788 by Serge Hallyn

lxccontaienr: fix missing va_end in error case.

parent 586d4e9b
......@@ -719,8 +719,10 @@ static bool lxcapi_createl(struct lxc_container *c, char *t, ...)
break;
nargs++;
temp = realloc(args, (nargs+1) * sizeof(*args));
if (!temp)
if (!temp) {
va_end(ap);
goto out;
}
args = temp;
args[nargs - 1] = arg;
}
......
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