coverity 155

coverity showed this as a null dereference which was a false positive.
sp can never be null here.


there is a bug however since with this invalid test  the memory release functions will never be called and we thus had a memory leak here.




git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18053 f5534014-38df-0310-8fa8-9805f1628bb7
This commit is contained in:
sahlberg 2006-05-01 07:43:47 +00:00
parent 623d58fc91
commit 1823b4b682
1 changed files with 4 additions and 4 deletions

View File

@ -181,10 +181,10 @@ static void
httpstat_reset(void *psp )
{
httpstat_t *sp=psp;
if (!sp) {
g_hash_table_foreach( sp->hash_responses, (GHFunc)http_reset_hash_responses, NULL);
g_hash_table_foreach( sp->hash_requests, (GHFunc)http_reset_hash_requests, NULL);
}
g_hash_table_foreach( sp->hash_responses, (GHFunc)http_reset_hash_responses, NULL);
g_hash_table_foreach( sp->hash_requests, (GHFunc)http_reset_hash_requests, NULL);
}
static int