Commit ccb2b5d2 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

free the FTP struct already in the _done() function

parent 85174ed3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -588,7 +588,8 @@ CURLcode ftp_done(struct connectdata *conn)
  if(ftp->dir)
    free(ftp->dir);

  /* TBD: the ftp struct is still allocated here */
  free(ftp);
  data->proto.ftp=NULL; /* it is gone */

  return CURLE_OK;
}