]> git.ipfire.org Git - thirdparty/snort3.git/commitdiff
leak fix
authorTom Peters <thopeter@cisco.com>
Thu, 7 Apr 2016 21:11:58 +0000 (17:11 -0400)
committerTom Peters <thopeter@cisco.com>
Thu, 7 Apr 2016 21:11:58 +0000 (17:11 -0400)
src/service_inspectors/nhttp_inspect/nhttp_msg_head_shared.cc

index dd162d9526f72585f3f8751cccf8c03143c51a87..d734704fef9bf25e4bf426c49a4fe4691e1f41cf 100644 (file)
@@ -40,6 +40,7 @@ NHttpMsgHeadShared::~NHttpMsgHeadShared()
         NormalizedHeader* temp_ptr = list_ptr;
         list_ptr = list_ptr->next;
         temp_ptr->norm.delete_buffer();
+        delete temp_ptr;
     }
     if (classic_raw_header_alloc)
         classic_raw_header.delete_buffer();