Snort mailing list archives
Potential Memory leak in function 'sfthd_create_threshold_local' in file 'sfthd.c'
From: Bill Parker <wp02855 () gmail com>
Date: Mon, 12 Oct 2015 09:54:06 -0700
Hello All,
In doing some review of memory allocation calls (2.9.8.0 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
'sflist_add_head',
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?
Bill
------------------------------------------------------------------------------
_______________________________________________ Snort-devel mailing list Snort-devel () lists sourceforge net https://lists.sourceforge.net/lists/listinfo/snort-devel Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=snort-devel Please visit http://blog.snort.org for the latest news about Snort!
Current thread:
- Potential Memory leak in function 'sfthd_create_threshold_local' in file 'sfthd.c' Bill Parker (Oct 12)
- Message not available
- Re: Potential Memory leak in function 'sfthd_create_threshold_local' in file 'sfthd.c' Kaushal Bhandankar (kbhandan) (Oct 14)
- Message not available
