Bug #169

memory leak in HTTP handling

Added by Victor Julien over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:05/26/2010
Priority:NormalDue date:06/04/2010
Assignee:Gurvinder Singh% Done:


Target version:0.9.2


The HTTP (HTP) module is leaking memory on looking up the server configuration.

18927 182,796 bytes in 15,233 blocks are definitely lost in loss record 865 of 874
18927 at 0x4024C1C: malloc (vg_replace_malloc.c:195)
18927 by 0x81AA1A4: SCRadixAllocSCRadixUserData (util-radix-tree.c:142)
18927 by 0x81AACDD: SCRadixCreatePrefix (util-radix-tree.c:252)
18927 by 0x81AF3A4: SCRadixFindKey (util-radix-tree.c:1469)
18927 by 0x81AF620: SCRadixFindKeyIPV4BestMatch (util-radix-tree.c:1549)
18927 by 0x8232499: HTPHandleRequestData (app-layer-htp.c:318)
18927 by 0x822BC32: AppLayerDoParse (app-layer-parser.c:655)
18927 by 0x822D3FB: AppLayerParse (app-layer-parser.c:861)
18927 by 0x821FBB8: AppLayerHandleMsg (app-layer.c:145)
18927 by 0x820304F: StreamTcpReassembleProcessAppLayer (stream-tcp-reassemble.c:1911)
18927 by 0x81EDE2B: StreamTcpPacket (stream-tcp.c:2509)
18927 by 0x81EE045: StreamTcp (stream-tcp.c:2527)

0001-fixed-the-memory-leaks-in-htp-and-radix-tree.patch Magnifier (1.62 KB) Gurvinder Singh, 05/26/2010 10:24 PM


#1 Updated by Gurvinder Singh over 5 years ago

Attached fixes the memory leaks in htp and radix tree.

#2 Updated by Victor Julien over 5 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 90 to 100

Applied, thanks Gurvinder.

Also available in: Atom PDF