From c4832814b440145c907c52fda02993739cb002a2 Mon Sep 17 00:00:00 2001 From: Gerardo Iglesias Galvan Date: Tue, 31 May 2011 18:12:51 -0500 Subject: [PATCH] Prevent a memory leak on low memory conditions in http client body handling --- src/app-layer-htp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index f65cecafa9..92f3c5cac5 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -588,7 +588,7 @@ error: if (bd->data != NULL) { SCFree(bd->data); } - SCFree(bd->data); + SCFree(bd); } SCReturnInt(-1); }