mirror of https://github.com/OISF/suricata
counters: fix 2 scan-build warnings
counters.c:1069:13: warning: Potential leak of memory pointed to by 'temp'
SCMutexUnlock(&sc_perf_op_ctx->pctmi_lock);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./threads.h:121:28: note: expanded from macro 'SCMutexUnlock'
^~~~~~~~~~~~~~~~~~~~
counters.c:1156:16: warning: Potential leak of memory pointed to by 'pca'
return NULL;
^~~~
/usr/include/clang/3.3/include/stddef.h:77:24: note: expanded from macro 'NULL'
^
2 warnings generated.
pull/764/head
parent
2c857087fb
commit
399246881d
Loading…
Reference in New Issue