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 9a97557..83b5d62 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 */
        }