aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorKevin Lo <kevlo@FreeBSD.org>2012-09-28 07:51:30 +0000
committerKevin Lo <kevlo@FreeBSD.org>2012-09-28 07:51:30 +0000
commitba670ce0239ee18cc7bc30bd3119f0e82234a71a (patch)
treef864a7f6a0ad8eb6c98c82aec4ef26f6d771057c /usr.sbin/pkg_install
parente4b8a2fc5a59c09eb58fd9ec160ab390fe1951ac (diff)
Notes
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/lib/exec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/pkg_install/lib/exec.c b/usr.sbin/pkg_install/lib/exec.c
index c95ac47fa9dc..0804501182b6 100644
--- a/usr.sbin/pkg_install/lib/exec.c
+++ b/usr.sbin/pkg_install/lib/exec.c
@@ -93,6 +93,7 @@ vpipe(const char *fmt, ...)
fp = popen(cmd, "r");
if (fp == NULL) {
warnx("popen() failed");
+ va_end(args);
return NULL;
}
get_string(rp, MAXPATHLEN, fp);