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

  • From: "Janus" <trac@xxxxxxxxxxxx>
  • Date: Thu, 18 Jun 2015 14:19:52 -0000

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

Comment (by Janus):

Hi Axel,

I'm afraid that the code that invoke the Prepare doesn't check if the
realloc worked. If the realloc fail, I think there are other problems
other than the memory leak. The address passed as a parameter is still
used. Am I wrong?

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

Other related posts: