libzip: libzip-discuss: Re: Memory Leak

Thread

Thread Index

  • Memory Leak, Simon Talbot (2010/01/29 00:50:20)
    • Re: Memory Leak, Thomas Klausner (2010/01/31 23:27:51)

Message

From: Thomas Klausner <tk%giga.or.at@localhost>
To: Simon Talbot <simont%nse.co.uk@localhost>
Subject: Re: Memory Leak
Date: Mon, 1 Feb 2010 00:27:51 +0100

On Fri, Jan 29, 2010 at 12:50:19AM +0000, Simon Talbot wrote:
> Please see patch below for a memory leak due to a missing free for the array 
> of filelist structures malloced in zip_close. I have put it where it seems to 
> make the most sense, but you will probably want to double check as I am not 
> overly familiar with the code design.

Thank you for the bug report, I've added a free() for this, and an
additional one missing in an error case, and released 0.9.2.
 Thomas

Made by MHonArc.