]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
unittest: fix mutex unlock w/o a lock 859/head
authorVictor Julien <victor@inliniac.net>
Thu, 27 Feb 2014 13:31:46 +0000 (14:31 +0100)
committerVictor Julien <victor@inliniac.net>
Thu, 27 Feb 2014 13:31:46 +0000 (14:31 +0100)
Fixes an error in a test. SCMutexUnlock was called w/o a prior
SCMutexLock.

src/detect.c

index 476221539e5610d21898eed0b24af665f64187d6..efdafc6c55fb6531b608737e3e7497ced5f7c9d9 100644 (file)
@@ -5285,7 +5285,6 @@ static int SigTest07Real (int mpm_type) {
 end:
     if (alp_tctx != NULL)
         AppLayerParserThreadCtxFree(alp_tctx);
-    SCMutexUnlock(&f.m);
     UTHFreePackets(&p, 1);
     StreamTcpFreeConfig(TRUE);
     FlowCleanupAppLayer(&f);