From: Eric Leblond Date: Mon, 19 Jun 2017 20:54:17 +0000 (+0200) Subject: detect-asn1: fix memory leak X-Git-Tag: suricata-4.0.0-rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb70b1e1957ddd84eefc557ca661309dac2dd1ba;p=thirdparty%2Fsuricata.git detect-asn1: fix memory leak --- diff --git a/src/detect-asn1.c b/src/detect-asn1.c index 2f659c7b6b..97b44e7104 100644 --- a/src/detect-asn1.c +++ b/src/detect-asn1.c @@ -277,9 +277,11 @@ static DetectAsn1Data *DetectAsn1Parse(const char *instr) fd->oversize_length = ov_len; /* Length argument if needed */ fd->absolute_offset = abs_off; /* Length argument if needed */ fd->relative_offset = rel_off; /* Length argument if needed */ + SCFree(asn1str); return fd; error: + SCFree(asn1str); return NULL; }