Project

General

Profile

Bug #1167

Updated by Victor Julien about 10 years ago

<pre> 
 *** 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) 
 </pre>

Back