Project

General

Profile

Actions

Bug #1169

closed

bpf: CID 1197757: Resource leak (RESOURCE_LEAK)

Added by Victor Julien about 10 years ago. Updated almost 8 years ago.

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 #1

Updated by Victor Julien almost 9 years ago

  • Target version changed from 3.0RC2 to 70
Actions #2

Updated by Victor Julien almost 8 years ago

  • Status changed from New to Closed
  • Assignee deleted (OISF Dev)
  • Target version deleted (70)

Coverity says this was fixed 2016-02-22 14:38:04

Actions

Also available in: Atom PDF