diff options
author | Guillem Jover <guillem@debian.org> | 2010-02-25 23:34:11 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2010-03-05 19:45:28 +0100 |
commit | 1d647dd23c14c0c340d36e44c687b2530c04ac97 (patch) | |
tree | 901a143a2136eae2c13db91a9e8ccddec5efecb3 /src/enquiry.c | |
parent | 972d84487ace85a7f547c5b9d74be1a4253d1e79 (diff) | |
download | dpkg-1d647dd23c14c0c340d36e44c687b2530c04ac97.tar.gz |
Release the package iterators when done
This is a cause of memory leaks, but in these cases the program is about
to exit anyway, so we do it for correctness.
Diffstat (limited to 'src/enquiry.c')
-rw-r--r-- | src/enquiry.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/enquiry.c b/src/enquiry.c index ee8938d9e..83714a009 100644 --- a/src/enquiry.c +++ b/src/enquiry.c @@ -347,6 +347,8 @@ void predeppackage(const char *const *argv) { pkg->clientdata->istobe= itb_normal; /* If dep is NULL we go and get the next package. */ } + iterpkgend(it); + if (!dep) exit(1); /* Not found */ assert(pkg); startpkg= pkg; |