==6638== Invalid write of size 4
==6638== at 0x8065E91: com_sock_create (server.c:85)
==6638== by 0x8059D4C: main (main.c:142)
==6638== Address 0x1C528B58 is 0 bytes inside a block of size 1 alloc'd
==6638== at 0x1B8FF896: malloc (vg_replace_malloc.c:149)
==6638== by 0x1B900BE1: realloc (vg_replace_malloc.c:306)
==6638== by 0x8065E70: com_sock_create (server.c:84)
==6638== by 0x8059D4C: main (main.c:142)
==> Starting onexit cleanup...
|==> Closing all sockets and freeing them...
==6638==
==6638== Invalid read of size 4
==6638== at 0x80663BE: com_free_all (server.c:221)
==6638== by 0x8059A04: quit_do_cleanup (main.c:54)
==6638== by 0x1BAA95E6: exit (in /lib/tls/i686/cmov/libc-2.3.5.so)
==6638== by 0x8059C05: quit_service (main.c:104)
==6638== by 0x8059D76: main (main.c:143)
==6638== Address 0x1C528B58 is 0 bytes inside a block of size 1 alloc'd
==6638== at 0x1B8FF896: malloc (vg_replace_malloc.c:149)
==6638== by 0x1B900BE1: realloc (vg_replace_malloc.c:306)
==6638== by 0x8065E70: com_sock_create (server.c:84)
==6638== by 0x8059D4C: main (main.c:142)
==6638==
==6638== Invalid read of size 4
==6638== at 0x80663C0: com_free_all (server.c:221)
==6638== by 0x8059A04: quit_do_cleanup (main.c:54)
==6638== by 0x1BAA95E6: exit (in /lib/tls/i686/cmov/libc-2.3.5.so)
==6638== by 0x8059C05: quit_service (main.c:104)
==6638== by 0x8059D76: main (main.c:143)
==6638== Address 0x1C52884C is 4 bytes inside a block of size 736 free'd
==6638== at 0x1B9003B3: free (vg_replace_malloc.c:235)
==6638== by 0x805A548: xfree (misc_func.c:229)
==6638== by 0x8066003: com_connect (server.c:130)
==6638== by 0x8059D62: main (main.c:143)
==6638==
==6638== Invalid read of size 4
==6638== at 0x80663DF: com_free_all (server.c:222)
==6638== by 0x8059A04: quit_do_cleanup (main.c:54)
==6638== by 0x1BAA95E6: exit (in /lib/tls/i686/cmov/libc-2.3.5.so)
==6638== by 0x8059C05: quit_service (main.c:104)
==6638== by 0x8059D76: main (main.c:143)
==6638== Address 0x1C528B58 is 0 bytes inside a block of size 1 alloc'd
==6638== at 0x1B8FF896: malloc (vg_replace_malloc.c:149)
==6638== by 0x1B900BE1: realloc (vg_replace_malloc.c:306)
==6638== by 0x8065E70: com_sock_create (server.c:84)
==6638== by 0x8059D4C: main (main.c:142)
==6638==
==6638== Invalid free() / delete / delete[]
==6638== at 0x1B9003B3: free (vg_replace_malloc.c:235)
==6638== by 0x805A548: xfree (misc_func.c:229)
==6638== by 0x80663E9: com_free_all (server.c:222)
==6638== by 0x8059A04: quit_do_cleanup (main.c:54)
==6638== by 0x1BAA95E6: exit (in /lib/tls/i686/cmov/libc-2.3.5.so)
==6638== by 0x8059C05: quit_service (main.c:104)
==6638== by 0x8059D76: main (main.c:143)
==6638== Address 0x1C528848 is 0 bytes inside a block of size 736 free'd
==6638== at 0x1B9003B3: free (vg_replace_malloc.c:235)
==6638== by 0x805A548: xfree (misc_func.c:229)
==6638== by 0x8066003: com_connect (server.c:130)
==6638== by 0x8059D62: main (main.c:143)
|==> Executing pending mySQL queries...
|==> Freeing memory used by databases...
| |==> Cleaning Help database...
| |==> Cleaning Nick database...
| |==> Cleaning Channels database...
| |==> Cleaning NickServ database...
| |==> Cleaning ChanServ database...
| \==> Databases successfully removed from memory...
|==> Flushing and closing log files...
|==> Freeing memory used by settings...
|==> Freeing memory used by timers...
\==> Cleanup done, quitting...
==6638==
==6638== ERROR SUMMARY: 41 errors from 17 contexts (suppressed: 0 from 0)
==6638== malloc/free: in use at exit: 54920 bytes in 647 blocks.
==6638== malloc/free: 921 allocs, 275 frees, 1062379 bytes allocated.
==6638== For counts of detected errors, rerun with: -v
==6638== searching for pointers to 647 not-freed blocks.
==6638== checked 9618744 bytes.
==6638==
==6638== LEAK SUMMARY:
==6638== definitely lost: 20783 bytes in 617 blocks.
==6638== possibly lost: 68 bytes in 1 blocks.
==6638== still reachable: 34069 bytes in 29 blocks.
==6638== suppressed: 0 bytes in 0 blocks.
==6638== Use --leak-check=full to see details of leaked memory.
stuart@mossy:~/new$