From: Dan Fandrich Date: Fri, 18 Mar 2011 18:20:24 +0000 (-0700) Subject: pop3: use Curl_safefree() to allow torture tests to succeed X-Git-Tag: curl-7_21_5~66 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=663a52c2f88637c773f610d0e8e610de0ad65425;p=thirdparty%2Fcurl.git pop3: use Curl_safefree() to allow torture tests to succeed --- diff --git a/lib/pop3.c b/lib/pop3.c index 03ea7efaf7..8da045e483 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -732,7 +732,7 @@ static CURLcode pop3_done(struct connectdata *conn, CURLcode status, result = status; /* use the already set error code */ } - free(pop3c->mailbox); + Curl_safefree(pop3c->mailbox); pop3c->mailbox = NULL; /* clear these for next connection */