From: Victor Julien Date: Thu, 27 Feb 2014 13:31:46 +0000 (+0100) Subject: unittest: fix mutex unlock w/o a lock X-Git-Tag: suricata-2.0rc2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F859%2Fhead;p=thirdparty%2Fsuricata.git unittest: fix mutex unlock w/o a lock Fixes an error in a test. SCMutexUnlock was called w/o a prior SCMutexLock. --- diff --git a/src/detect.c b/src/detect.c index 476221539e..efdafc6c55 100644 --- a/src/detect.c +++ b/src/detect.c @@ -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);