Using "-DTRACK_ZALLOC -DTRACK_MALLOC -DUSE_MALLOC", I get many lines like this,

"(src/core/sockets.c:1355) attempt to free block at 0x0 twice?"

$ grep "(src/core/sockets.c:1355) attempt to free block at 0x0 twice?" err | wc
   7997   87967  727727
$ wc err
  8334  91403 762097 err

err is stderr from a headless process.

Index: src/core/sockets.c
===================================================================
--- src/core/sockets.c  (revision 12762)
+++ src/core/sockets.c  (working copy)
@@ -1352,7 +1352,7 @@
                }
                s->file_desc = -1;
        }
-       g_free(s->buf);
+       if(s->buf) g_free(s->buf);
        socket_dealloc(&s);
 }


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel

Reply via email to