git.annexia.org
/
miniexpect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Small fix to documentation.
[miniexpect.git]
/
miniexpect.c
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;
}