#13136: [Patch] system/libroot/os/find_paths.cpp: fix memory leak
-------------------------------+------------------------------
Reporter: mt | Owner: axeld
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: System/libroot.so | Version: R1/Development
Keywords: | Blocked By:
Blocking: | Has a Patch: 0
Platform: All |
-------------------------------+------------------------------
In Get(), memory allocated to 'locations' at line 123 [1] could leak at
line 127 [2] if 'locations->IsValid' is not B_OK at line 126 [3].
[1] http://cgit.haiku-
os.org/haiku/tree/src/system/libroot/os/find_paths.cpp#n123
[2] http://cgit.haiku-
os.org/haiku/tree/src/system/libroot/os/find_paths.cpp#n127
[3] http://cgit.haiku-
os.org/haiku/tree/src/system/libroot/os/find_paths.cpp#n126
--
Ticket URL: <https://dev.haiku-os.org/ticket/13136>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.