Project

General

Profile

Actions

Bug #1167

closed

flowbits: CID 1197758: 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 1197758:  Resource leak  (RESOURCE_LEAK)
/src/detect-flowbits.c: 265 in DetectFlowbitSetup()
259             case DETECT_FLOWBITS_CMD_TOGGLE:
260                 /* modifiers, only run when entire sig has matched */
261                 SigMatchAppendSMToList(s, sm, DETECT_SM_LIST_POSTMATCH);
262                 break;
263         }
264     
>>>     CID 1197758:  Resource leak  (RESOURCE_LEAK)
>>>     Variable "sm" going out of scope leaks the storage it points to.
265         return 0;
266     
267     error:
268         if (cd != NULL)
269             SCFree(cd);
270         if (sm != NULL)
Actions

Also available in: Atom PDF