http: fix memory leak in error path

pull/2343/head
Victor Julien 9 years ago
parent 40af9aad02
commit f867bb61e6

@ -166,9 +166,6 @@ void HtpBodyFree(HtpBody *body)
{ {
SCEnter(); SCEnter();
if (body->first == NULL)
return;
SCLogDebug("removing chunks of body %p", body); SCLogDebug("removing chunks of body %p", body);
HtpBodyChunk *cur = NULL; HtpBodyChunk *cur = NULL;

Loading…
Cancel
Save