plugged a memory leak, reported by Koen D'Hondt <ripley@xs4all.nl> on 15

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.
This commit is contained in:
Tim Janik
1999-02-18 08:13:19 +00:00
committed by Tim Janik
parent 260fabb67a
commit af15d082a8
10 changed files with 52 additions and 4 deletions

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -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.

View File

@@ -285,7 +285,11 @@ g_realloc (gpointer mem,
if (size == 0)
{
g_free (mem);
return NULL;
}
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
@@ -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)

6
gmem.c
View File

@@ -285,7 +285,11 @@ g_realloc (gpointer mem,
if (size == 0)
{
g_free (mem);
return NULL;
}
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
@@ -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)