summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dcc0a08)
This corrects several places in ccan where stdarg.h is used but there is a
missing va_end(). You can get away with this on many platforms, but not
all.
Caught by Coverity scan.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
call.closed = false;
if (call.flags & O_CREAT) {
call.mode = va_arg(ap, int);
call.closed = false;
if (call.flags & O_CREAT) {
call.mode = va_arg(ap, int);
p = add_history(FAILTEST_OPEN, true, file, line, &call);
/* Avoid memory leak! */
if (p == &unrecorded_call)
p = add_history(FAILTEST_OPEN, true, file, line, &call);
/* Avoid memory leak! */
if (p == &unrecorded_call)
}
ret = get_pp(cond, head);
tal_free(head);
}
ret = get_pp(cond, head);
tal_free(head);
args = tal_vfmt(ctx, fmt, ap);
rc = run_command(ctx, time_ms, output, "%s %s", cmd, args);
tal_free(args);
args = tal_vfmt(ctx, fmt, ap);
rc = run_command(ctx, time_ms, output, "%s %s", cmd, args);
tal_free(args);