diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-03 14:56:41 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-08-03 14:56:41 +0200 |
commit | b7f9f8fc3c7dc452e457bfd8ba51b198b6c29960 (patch) | |
tree | df5a3a2c2398045898fccf45a56969eec0b8ca0d /apt-pkg/deb/dpkgpm.cc | |
parent | 4aaa50a3f7baace5119277674add9e28be32e6bd (diff) | |
parent | 608c766dc110493b952a615c3eb82c3cf3ed8b90 (diff) |
* merged from dpkg-log branch
Diffstat (limited to 'apt-pkg/deb/dpkgpm.cc')
-rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index aa840f85e..94215197c 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -843,12 +843,14 @@ bool pkgDPkgPM::Go(int OutStatusFd) if(stopOnError) { - fclose(term_out); + if(term_out) + fclose(term_out); return false; } } } - fclose(term_out); + if(term_out) + fclose(term_out); if (RunScripts("DPkg::Post-Invoke") == false) return false; |