From: Michael Vogt Date: Thu, 25 Jul 2013 18:55:18 +0000 (+0200) Subject: add missing "free(buffer) for allocated buffer X-Git-Tag: 0.9.11~15^2~8 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/1b7bf822ad9504f6d01cd4422d830e8815143912 add missing "free(buffer) for allocated buffer --- diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index 398830ff5..0b6e07f75 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -251,7 +251,6 @@ int GetLock(string File,bool Errors) if (errno == ENOLCK) { - _error->Warning(_("Not using locking for nfs mounted lock file %s"),File.c_str()); return dup(0); // Need something for the caller to close } diff --git a/methods/gpgv.cc b/methods/gpgv.cc index fe8bac6c9..ea8a26fd4 100644 --- a/methods/gpgv.cc +++ b/methods/gpgv.cc @@ -152,6 +152,7 @@ string GPGVMethod::VerifyGetSigners(const char *file, const char *outfile, } } fclose(pipein); + free(buffer); int status; waitpid(pid, &status, 0);