2
0
mirror of git://github.com/lxc/lxc synced 2025-08-31 19:12:01 +00:00

lxcccontainer: add missing va_end found by coverity

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Serge Hallyn
2013-04-14 21:12:58 -05:00
parent af41709c42
commit 586d4e9be1

View File

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