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