Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=931ae46047057c649a41daa9bad49ae2985bce3d
commit 931ae46047057c649a41daa9bad49ae2985bce3d 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 56acb17..8ec54c2 100644 --- a/lib/libpacman/server.c +++ b/lib/libpacman/server.c @@ -554,6 +554,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
