Fix leak in pki --pkcs7 --decrypt
authorMartin Willi <martin@revosec.ch>
Tue, 27 Nov 2012 15:35:53 +0000 (16:35 +0100)
committerMartin Willi <martin@revosec.ch>
Wed, 19 Dec 2012 09:32:08 +0000 (10:32 +0100)
src/pki/commands/pkcs7.c

index d4dc949..7e2d6aa 100644 (file)
@@ -205,6 +205,7 @@ static int decrypt(chunk_t chunk)
                container->destroy(container);
                return 1;
        }
+       container->destroy(container);
 
        write_to_stream(stdout, data);
        free(data.ptr);