Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=d1f2f507b5099ccc4227467976a5317ae5d99a68

commit d1f2f507b5099ccc4227467976a5317ae5d99a68
Author: James Buren <[email protected]>
Date:   Tue Jul 16 07:37:30 2013 -0500

server: free the netbuf object before returning when returning early due
to matching mtime

diff --git a/lib/libpacman/server.c b/lib/libpacman/server.c
index 3c12251..5bb7f5f 100644
--- a/lib/libpacman/server.c
+++ b/lib/libpacman/server.c
@@ -557,6 +557,13 @@ int _pacman_downloadfiles_forreal(pmlist_t *servers, const 
char *localpath,
} else if(filedone < 0) {
/* 1 means here that the file is up to date, not a real error, so
* don't go to error: */
+                                       if(!handle->xfercommand) {
+                                               if(!strcmp(server->protocol, 
"ftp") && !handle->proxyhost) {
+                                                       FtpQuit(control);
+                                               } else 
if(!strcmp(server->protocol, "http") || (handle->proxyhost && 
strcmp(server->protocol, "file"))) {
+                                                       HttpQuit(control);
+                                               }
+                                       }
FREELISTPTR(complete);
return(1);
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to