From: Andreas Herz Date: Tue, 16 Feb 2016 21:55:28 +0000 (+0100) Subject: detect-tls-version: fix small resource leak X-Git-Tag: suricata-3.0.1RC1~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09fe1c62d8d394dc2d839370c550a9851fe22119;p=thirdparty%2Fsuricata.git detect-tls-version: fix small resource leak --- diff --git a/src/detect-tls-version.c b/src/detect-tls-version.c index 51547260cc..26fb740540 100644 --- a/src/detect-tls-version.c +++ b/src/detect-tls-version.c @@ -201,6 +201,7 @@ DetectTlsVersionData *DetectTlsVersionParse (char *str) temp = TLS_VERSION_12; } else { SCLogError(SC_ERR_INVALID_VALUE, "Invalid value"); + SCFree(orig); goto error; }