Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

pop3: Post apop feature code tidy up

  • Loading branch information...
commit a3660127a4497b2e30988c5f6aad3d17343ed6e0 1 parent c09c621
Steve Holme authored June 09, 2012

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. 9  lib/pop3.c
9  lib/pop3.c
@@ -1356,7 +1356,7 @@ static CURLcode pop3_done(struct connectdata *conn, CURLcode status,
1356 1356
     result = status;         /* use the already set error code */
1357 1357
   }
1358 1358
 
1359  
-  /* Clear our variables for the next connection */
  1359
+  /* Cleanup our do based variables */
1360 1360
   Curl_safefree(pop3c->mailbox);
1361 1361
   Curl_safefree(pop3c->custom);
1362 1362
 
@@ -1494,14 +1494,15 @@ static CURLcode pop3_disconnect(struct connectdata *conn,
1494 1494
   if(!dead_connection && pop3c->pp.conn)
1495 1495
     (void)pop3_quit(conn); /* ignore errors on the LOGOUT */
1496 1496
 
  1497
+  /* Disconnect from the server */
1497 1498
   Curl_pp_disconnect(&pop3c->pp);
1498 1499
 
1499  
-  /* Clear our variables */
1500  
-  Curl_safefree(pop3c->apoptimestamp);
1501  
-
1502 1500
   /* Cleanup the SASL module */
1503 1501
   Curl_sasl_cleanup(conn, pop3c->authused);
1504 1502
 
  1503
+  /* Cleanup our connection based variables */
  1504
+  Curl_safefree(pop3c->apoptimestamp);
  1505
+
1505 1506
   return CURLE_OK;
1506 1507
 }
1507 1508
 

0 notes on commit a366012

Please sign in to comment.
Something went wrong with that request. Please try again.