diff -r 7d62e6b63905 -r 189d2833dc99 src/protocols/toc/toc.c --- a/src/protocols/toc/toc.c Sun Nov 23 15:25:04 2003 +0000 +++ b/src/protocols/toc/toc.c Sun Nov 23 15:32:25 2003 +0000 @@ -309,7 +309,7 @@ } /* Allocate a string */ - ret = (char *)malloc((j+1) * sizeof(char)); + ret = (char *)g_malloc((j+1) * sizeof(char)); /* Copy the string */ for (i=0, j=0; msg[i]; i++) @@ -436,7 +436,7 @@ ret = toc_write(tdt->toc_fd, obuf, slen); free(obuf); - free(escaped); + g_free(escaped); return ret; }