summaryrefslogtreecommitdiffstats
path: root/src/tools
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2010-06-09 10:45:33 -0400
committerStephen Gallagher <sgallagh@redhat.com>2010-06-10 10:17:38 -0400
commit75b1a17efec759980a636b41e0c8144230725802 (patch)
tree84802709145ea3a794453951a5fefbbd41c5757b /src/tools
parent3ae60b86b6bfcd049d23438855fd7ba9b4f38fab (diff)
downloadsssd-75b1a17efec759980a636b41e0c8144230725802.tar.gz
sssd-75b1a17efec759980a636b41e0c8144230725802.tar.xz
sssd-75b1a17efec759980a636b41e0c8144230725802.zip
Make sure to close varargs before returning from a function
https://fedorahosted.org/sssd/ticket/528
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/selinux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/selinux.c b/src/tools/selinux.c
index 23951289a..27cc56803 100644
--- a/src/tools/selinux.c
+++ b/src/tools/selinux.c
@@ -116,11 +116,11 @@ static void sss_semanage_error_callback(void *varg,
va_start(ap, fmt);
ret = vasprintf(&message, fmt, ap);
+ va_end(ap);
if (ret < 0) {
/* ENOMEM */
return;
}
- va_end(ap);
if (level <= debug_level) {
if (debug_timestamps) {