Add missing va_end() call
authorTobias Brunner <tobias@strongswan.org>
Thu, 24 Jan 2013 17:32:43 +0000 (18:32 +0100)
committerTobias Brunner <tobias@strongswan.org>
Thu, 24 Jan 2013 18:13:41 +0000 (19:13 +0100)
src/libimcv/os_info/os_info.c

index 92f4751..699a91f 100644 (file)
@@ -214,7 +214,7 @@ METHOD(os_info_t, get_setting, chunk_t,
 
 typedef struct {
        /**
-        * implements enumerator_t 
+        * implements enumerator_t
         */
        enumerator_t public;
 
@@ -273,6 +273,7 @@ static bool package_enumerator_enumerate(package_enumerator_t *this, ...)
                pos = strchr(pos, '\t');
                if (!pos)
                {
+                       va_end(args);
                        return FALSE;
                }
                name->len = pos++ - name->ptr;