]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Free leaking scep attributes
authorMartin Willi <martin@revosec.ch>
Thu, 29 Nov 2012 15:48:18 +0000 (16:48 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 19 Dec 2012 09:32:08 +0000 (10:32 +0100)
src/scepclient/scepclient.c

index 9a97557968115594a1c728ea076d77feba189ff6..83b5d621955d10d6cebbe6a6a192738852e9b3eb 100644 (file)
@@ -1448,6 +1448,10 @@ int main(int argc, char **argv)
                }
                enumerator->destroy(enumerator);
                container->destroy(container);
+               chunk_free(&attrs.transID);
+               chunk_free(&attrs.senderNonce);
+               chunk_free(&attrs.recipientNonce);
+
                filetype_out &= ~CERT;   /* delete CERT flag */
        }