fixed memleak if RND parsing fails
authorMartin Willi <martin@strongswan.org>
Mon, 6 Jul 2009 09:45:26 +0000 (11:45 +0200)
committerMartin Willi <martin@strongswan.org>
Mon, 6 Jul 2009 11:15:29 +0000 (13:15 +0200)
src/libstrongswan/utils/identification.c

index 462a7e8..353a2ff 100644 (file)
@@ -173,6 +173,7 @@ static enumerator_t* create_rdn_enumerator(chunk_t dn)
        {
                return &e->public;
        }
+       free(e);
        return enumerator_create_empty();
 }