[Mono-list] Small patch

Jaak jaak@zd.com.pl
10 Apr 2003 19:53:07 +0200


Attached is a small patch for an obvious typo which makes the
compilation without GC fail.

Can someone commit it?

Jaak
 

Index: reflection.c
===================================================================
RCS file: /mono/mono/mono/metadata/reflection.c,v
retrieving revision 1.156
diff -u -r1.156 reflection.c
--- reflection.c        9 Apr 2003 11:29:19 -0000       1.156
+++ reflection.c        10 Apr 2003 17:50:27 -0000
@@ -108,7 +108,7 @@
 #define REALLOC_ATOMIC(ptr, size) GC_REALLOC ((ptr), (size))
 #else
 #define ALLOC_ATOMIC(size) g_malloc (size)
-#define FREE_ATOMIC(ptr) g_free (size)
+#define FREE_ATOMIC(ptr) g_free (ptr)
 #define REALLOC_ATOMIC(ptr, size) g_realloc ((ptr), (size))
 #endif