[haiku-bugs] Re: [Haiku] #12152: Memory is not released after a failed call to realloc()

  • From: "philcostin" <trac@xxxxxxxxxxxx>
  • Date: Sat, 13 Jun 2015 21:56:17 -0000

#12152: Memory is not released after a failed call to realloc()
----------------------------------------+----------------------------
Reporter: philcostin | Owner: axeld
Type: bug | Status: closed
Priority: normal | Milestone: Unscheduled
Component: Network & Internet/Stack | Version: R1/Development
Resolution: junk | Keywords:
Blocked By: | Blocking:
Has a Patch: 1 | Platform: All
----------------------------------------+----------------------------

Comment (by philcostin):

I see what I've done there now yes, disregard the patch. However, the
issue (although small) remains.

The first parameter to realloc() is not freed when the function returns
null. The patch needs changing.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12152#comment:3>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: