Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Commit

Permalink
plugged a memory leak, reported by Koen D'Hondt <ripley@xs4all.nl> on 15
Browse files Browse the repository at this point in the history
Thu Feb 18 08:24:12 1999  Tim Janik  <timj@gtk.org>

        * gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
        <ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.
  • Loading branch information
tim-janik authored and Tim Janik committed Feb 18, 1999
1 parent 260fabb commit af15d08
Show file tree
Hide file tree
Showing 10 changed files with 52 additions and 4 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org>

* gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
<ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.

1999-02-17 Elliot Lee <sopwith@redhat.com>

* glib.spec: Do --enable-debug=no for the .rpm's.
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-0
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org>

* gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
<ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.

1999-02-17 Elliot Lee <sopwith@redhat.com>

* glib.spec: Do --enable-debug=no for the .rpm's.
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-10
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org>

* gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
<ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.

1999-02-17 Elliot Lee <sopwith@redhat.com>

* glib.spec: Do --enable-debug=no for the .rpm's.
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-12
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org>

* gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
<ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.

1999-02-17 Elliot Lee <sopwith@redhat.com>

* glib.spec: Do --enable-debug=no for the .rpm's.
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-2
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org>

* gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
<ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.

1999-02-17 Elliot Lee <sopwith@redhat.com>

* glib.spec: Do --enable-debug=no for the .rpm's.
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-4
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org>

* gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
<ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.

1999-02-17 Elliot Lee <sopwith@redhat.com>

* glib.spec: Do --enable-debug=no for the .rpm's.
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-6
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org>

* gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
<ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.

1999-02-17 Elliot Lee <sopwith@redhat.com>

* glib.spec: Do --enable-debug=no for the .rpm's.
Expand Down
5 changes: 5 additions & 0 deletions ChangeLog.pre-2-8
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
Thu Feb 18 08:24:12 1999 Tim Janik <timj@gtk.org>

* gmem.c (g_realloc): plugged a memory leak, reported by Koen D'Hondt
<ripley@xs4all.nl> on 15 Oct 1998. allocate inital block from realloc.

1999-02-17 Elliot Lee <sopwith@redhat.com>

* glib.spec: Do --enable-debug=no for the .rpm's.
Expand Down
8 changes: 6 additions & 2 deletions glib/gmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,11 @@ g_realloc (gpointer mem,


if (size == 0)
return NULL;
{
g_free (mem);

return NULL;
}


#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
Expand All @@ -298,7 +302,7 @@ g_realloc (gpointer mem,


if (!mem)
p = (gpointer) malloc (size);
p = (gpointer) realloc (NULL, size);
else
{
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
Expand Down
8 changes: 6 additions & 2 deletions gmem.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,11 @@ g_realloc (gpointer mem,


if (size == 0)
return NULL;
{
g_free (mem);

return NULL;
}


#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
Expand All @@ -298,7 +302,7 @@ g_realloc (gpointer mem,


if (!mem)
p = (gpointer) malloc (size);
p = (gpointer) realloc (NULL, size);
else
{
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
Expand Down

0 comments on commit af15d08

Please sign in to comment.