pop3: use Curl_safefree() to allow torture tests to succeed
authorDan Fandrich <dan@coneharvesters.com>
Fri, 18 Mar 2011 18:20:24 +0000 (11:20 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 18 Mar 2011 18:20:24 +0000 (11:20 -0700)
lib/pop3.c

index 03ea7ef..8da045e 100644 (file)
@@ -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 */