git.annexia.org
/
miniexpect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a1abad
)
p2v: properly call va_end
author
Pino Toscano
<ptoscano@redhat.com>
Fri, 25 Jul 2014 15:36:14 +0000
(17:36 +0200)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 12 Aug 2014 11:23:14 +0000
(12:23 +0100)
miniexpect.c
patch
|
blob
|
history
diff --git
a/miniexpect.c
b/miniexpect.c
index
99bd29a
..
e1a184c
100644
(file)
--- a/
miniexpect.c
+++ b/
miniexpect.c
@@
-114,6
+114,7
@@
mexp_spawnl (const char *file, const char *arg, ...)
new_argv = realloc (argv, sizeof (char *) * (i+1));
if (new_argv == NULL) {
free (argv);
+ va_end (args);
return NULL;
}
argv = new_argv;
@@
-122,6
+123,7
@@
mexp_spawnl (const char *file, const char *arg, ...)
h = mexp_spawnv (file, argv);
free (argv);
+ va_end (args);
return h;
}