Re: [gnet-dev] memory leak in gnet



That would do it.  Geez, that's an embarrassing bug.  :-)

Well, I'll get the fix in next week's release.

David

(Sorry for the delay.  This email got left in mailman's approval queue.)


On Wed, 30 Apr 2003, Pierre-Emmanuel Gros wrote:

> i look into the cvs about a memory leak into inetadress.c .
> i patch the code in that way  to remove the memory leak:
> void
> gnet_inetaddr_unref (GInetAddr* inetaddr)
> {
>   g_return_if_fail(inetaddr != NULL);
>
>     inetaddr->ref_count--;
> //  inetaddr->ref_count++;
>
>   if (inetaddr->ref_count == 0)
>     {
>       if (inetaddr->name != NULL)
>  g_free (inetaddr->name);
>       g_free (inetaddr);
>     }
> }
>
>
> _______________________________________________
> gnet-dev mailing list
> gnet-dev gnetlibrary org
> http://www.gnetlibrary.org/mailman/listinfo/gnet-dev
>

-- 
David Helder - dhelder umich edu - <http://www.eecs.umich.edu/~dhelder>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]