bugfix



Here's a fix for a memory bug that was causing all sorts of weird happenings
for me. As you can see, malloc and g_free don't mix :)

diff -u -r1.20 misc.c
--- libbalsa/misc.c      1998/12/12 14:36:39     1.20
+++ libbalsa/misc.c      1998/12/18 17:01:41
@@ -123,7 +123,7 @@
 
   lseek (fd, 0, SEEK_SET);
 
-  *buf = (char *) malloc (size);
+  *buf = (char *) g_malloc (size);
   if (*buf == NULL)
     {
       return -1;

-- 
William
wmorgan@syntony.org

PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]