From 28802179066844a6495e74c12d52675b508f7bb0 Mon Sep 17 00:00:00 2001 From: jsteube Date: Fri, 30 Sep 2016 12:23:03 +0200 Subject: [PATCH] Fix memleak in outfile_ctx --- src/outfile.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/outfile.c b/src/outfile.c index 134f68661..cace79d51 100644 --- a/src/outfile.c +++ b/src/outfile.c @@ -5,6 +5,7 @@ #include "common.h" #include "types.h" +#include "memory.h" #include "logging.h" #include "interface.h" #include "hashes.h" @@ -33,6 +34,8 @@ void outfile_destroy (outfile_ctx_t *outfile_ctx) outfile_ctx->filename = NULL; outfile_ctx->outfile_format = 0; outfile_ctx->outfile_autohex = 0; + + myfree (outfile_ctx); } void outfile_format_plain (outfile_ctx_t *outfile_ctx, const unsigned char *plain_ptr, const uint plain_len)