From: wessels <> Date: Tue, 21 Jul 1998 01:30:26 +0000 (+0000) Subject: memory leak X-Git-Tag: SQUID_3_0_PRE1~3039 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5fff72e3fb0ce45842d7feab114525898f379121;p=thirdparty%2Fsquid.git memory leak --- diff --git a/src/ftp.cc b/src/ftp.cc index 885ed7e6dc..123bab9833 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.236 1998/07/20 19:25:31 wessels Exp $ + * $Id: ftp.cc,v 1.237 1998/07/20 19:30:26 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -1059,7 +1059,7 @@ ftpParseControlReply(char *buf, size_t len, int *codep, int *used) debug(9, 3) ("ftpParseControlReply: usable = %d\n", usable); if (usable == 0) { debug(9, 3) ("ftpParseControlReply: didn't find end of line\n"); - xfree(sbuf); + safe_free(sbuf); return NULL; } debug(9, 3) ("ftpParseControlReply: %d bytes to play with\n", len); @@ -1088,6 +1088,7 @@ ftpParseControlReply(char *buf, size_t len, int *codep, int *used) *tail = list; tail = &list->next; } + safe_free(sbuf); *used = (int) (s - sbuf); if (!complete) wordlistDestroy(&head);