[Snort-devel] Potential Memory leak in function 'sfthd_create_threshold_local' in file 'sfthd.c'
wp02855 at ...2499...
Mon Oct 12 12:54:06 EDT 2015
In doing some review of memory allocation calls (184.108.40.206 Beta/RC),
it would appear that in function 'sfthd_create_threshold_local', a call
to calloc() is made at line 428:
sfthd_node = (THD_NODE*)calloc(1,sizeof(THD_NODE));
but it would appear that even after the node is added with
or 'sflist_add_before', or 'sflist_add_tail', it would appear that the
memory allocated at line 428 is never released via free() before a return 0
is encountered in this function, or does this not matter given how the
function builds the nodes in question?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Snort-devel