Skip to content

Commit

Permalink
conf: va_end was not called.
Browse files Browse the repository at this point in the history
Signed-off-by: Donghwa Jeong <dh48.jeong@samsung.com>
  • Loading branch information
2xsec authored and Christian Brauner committed May 30, 2018
1 parent 8e50bbe commit dfd8ceb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lxc/conf.c
Expand Up @@ -530,8 +530,10 @@ int run_script(const char *name, const char *section, const char *script, ...)
int len = size - ret;
int rc;
rc = snprintf(buffer + ret, len, " %s", p);
if (rc < 0 || rc >= len)
if (rc < 0 || rc >= len) {
va_end(ap);
return -1;
}
ret += rc;
}
va_end(ap);
Expand Down

0 comments on commit dfd8ceb

Please sign in to comment.