Opened 7 years ago

Closed 7 years ago

#13118 closed bug (fixed)

[Patch] kits/tracker/DirMenu.cpp: fix memory leak

Reported by: mt Owned by: nobody
Priority: normal Milestone: Unscheduled
Component: Kits/libtracker.so Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

In BDirMenu::Populate(), memory allocated to 'menu' at line 98 [1] may leak if fMenuBar is NULL at line 100 [2].

[1] http://cgit.haiku-os.org/haiku/tree/src/kits/tracker/DirMenu.cpp#n98 [2] http://cgit.haiku-os.org/haiku/tree/src/kits/tracker/DirMenu.cpp#n100

Attachments (2)

0041-DirMenu.cpp-fix-memory-leak.patch (903 bytes ) - added by mt 7 years ago.
report-97294d.html (57.8 KB ) - added by mt 7 years ago.
report by Clang Static Analyzer

Download all attachments as: .zip

Change History (4)

comment:1 by mt, 7 years ago

patch: 01

by mt, 7 years ago

Attachment: report-97294d.html added

report by Clang Static Analyzer

comment:2 by pulkomandy, 7 years ago

Resolution: fixed
Status: newclosed

Applied in hrev50919.

Note: See TracTickets for help on using tickets.