]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect-tls-version: fix small resource leak
authorAndreas Herz <andi@geekosphere.org>
Tue, 16 Feb 2016 21:55:28 +0000 (22:55 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 22 Feb 2016 10:39:28 +0000 (11:39 +0100)
src/detect-tls-version.c

index 51547260cc6b2ddbaa7e3b54f9dd3f0fe9746ce6..26fb7405408b5f90c8598fd0b0ecc52e6e01e180 100644 (file)
@@ -201,6 +201,7 @@ DetectTlsVersionData *DetectTlsVersionParse (char *str)
             temp = TLS_VERSION_12;
         } else {
             SCLogError(SC_ERR_INVALID_VALUE, "Invalid value");
+            SCFree(orig);
             goto error;
         }