mirror of
				https://gitlab.gnome.org/GNOME/glib.git
				synced 2025-11-04 10:08:56 +01:00 
			
		
		
		
	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:
		@@ -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>
 | 
					1999-02-17  Elliot Lee  <sopwith@redhat.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
						* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
					1999-02-17  Elliot Lee  <sopwith@redhat.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
						* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
					1999-02-17  Elliot Lee  <sopwith@redhat.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
						* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
					1999-02-17  Elliot Lee  <sopwith@redhat.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
						* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
					1999-02-17  Elliot Lee  <sopwith@redhat.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
						* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
					1999-02-17  Elliot Lee  <sopwith@redhat.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
						* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
					1999-02-17  Elliot Lee  <sopwith@redhat.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
						* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -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>
 | 
					1999-02-17  Elliot Lee  <sopwith@redhat.com>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
						* glib.spec: Do --enable-debug=no for the .rpm's.
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -285,7 +285,11 @@ g_realloc (gpointer mem,
 | 
				
			|||||||
  
 | 
					  
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  if (size == 0)
 | 
					  if (size == 0)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      g_free (mem);
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
      return NULL;
 | 
					      return NULL;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
 | 
					#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
 | 
				
			||||||
@@ -298,7 +302,7 @@ g_realloc (gpointer mem,
 | 
				
			|||||||
  
 | 
					  
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  if (!mem)
 | 
					  if (!mem)
 | 
				
			||||||
    p = (gpointer) malloc (size);
 | 
					    p = (gpointer) realloc (NULL, size);
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
 | 
					#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										6
									
								
								gmem.c
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								gmem.c
									
									
									
									
									
								
							@@ -285,7 +285,11 @@ g_realloc (gpointer mem,
 | 
				
			|||||||
  
 | 
					  
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  if (size == 0)
 | 
					  if (size == 0)
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      g_free (mem);
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
      return NULL;
 | 
					      return NULL;
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
 | 
					#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
 | 
				
			||||||
@@ -298,7 +302,7 @@ g_realloc (gpointer mem,
 | 
				
			|||||||
  
 | 
					  
 | 
				
			||||||
  
 | 
					  
 | 
				
			||||||
  if (!mem)
 | 
					  if (!mem)
 | 
				
			||||||
    p = (gpointer) malloc (size);
 | 
					    p = (gpointer) realloc (NULL, size);
 | 
				
			||||||
  else
 | 
					  else
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
 | 
					#if defined(ENABLE_MEM_PROFILE) || defined(ENABLE_MEM_CHECK)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user