Commit 586d4e9b by Serge Hallyn

lxcccontainer: add missing va_end found by coverity

parent af41709c
...@@ -440,8 +440,10 @@ static bool lxcapi_startl(struct lxc_container *c, int useinit, ...) ...@@ -440,8 +440,10 @@ static bool lxcapi_startl(struct lxc_container *c, int useinit, ...)
break; break;
n_inargs++; n_inargs++;
temp = realloc(inargs, n_inargs * sizeof(*inargs)); temp = realloc(inargs, n_inargs * sizeof(*inargs));
if (!temp) if (!temp) {
va_end(ap);
goto out; goto out;
}
inargs = temp; inargs = temp;
inargs[n_inargs - 1] = strdup(arg); // not sure if it's safe not to copy inargs[n_inargs - 1] = strdup(arg); // not sure if it's safe not to copy
} }
......
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