Re: [gnet-dev] memory leak in gnet
- From: David Helder <dhelder umich edu>
- To: Pierre-Emmanuel Gros <Pierre-Emmanuel Gros limsi fr>
- Cc: "gnet-dev gnetlibrary org" <gnet-dev gnetlibrary org>
- Subject: Re: [gnet-dev] memory leak in gnet
- Date: Tue, 13 May 2003 23:46:45 -0400 (EDT)
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]