Commit 663a52c2 authored by Dan Fandrich's avatar Dan Fandrich
Browse files

pop3: use Curl_safefree() to allow torture tests to succeed

parent 4b51484a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 */