Actions
Bug #1169
closedbpf: CID 1197757: Resource leak (RESOURCE_LEAK)
Status:
Closed
Priority:
Low
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:
Description
*** CID 1197757: Resource leak (RESOURCE_LEAK) /src/suricata.c: 406 in SetBpfString() 400 tmpindex++; 401 } 402 403 if(strlen(bpf_filter) > 0) { 404 if (ConfSetFinal("bpf-filter", bpf_filter) != 1) { 405 SCLogError(SC_ERR_FATAL, "Failed to set bpf filter."); >>> CID 1197757: Resource leak (RESOURCE_LEAK) >>> Variable "bpf_filter" going out of scope leaks the storage it points to. 406 return TM_ECODE_FAILED; 407 } 408 } 409 SCFree(bpf_filter); 410 411 return TM_ECODE_OK;
Actions