summaryrefslogtreecommitdiff
path: root/cmdline
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-09-19 16:06:06 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-09-19 16:06:06 +0200
commitd6df222d8edb3e38401affcee2a4e5eba605da32 (patch)
tree428086a857f3d75114f213bf98379af28e717510 /cmdline
parent352a3d00984634f65dd7a929c3254fd160fd931a (diff)
* cmdline/apt-get.cc:
- call regexp_free()
Diffstat (limited to 'cmdline')
-rw-r--r--cmdline/apt-get.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmdline/apt-get.cc b/cmdline/apt-get.cc
index 57e0e9ec7..2062aaa16 100644
--- a/cmdline/apt-get.cc
+++ b/cmdline/apt-get.cc
@@ -1423,14 +1423,12 @@ bool DoInstallTask(CommandLine &CmdL)
pkgRecords Recs(Cache);
unsigned int ExpectedInst = 0;
- unsigned int Packages = 0;
pkgProblemResolver Fix(Cache);
char buf[64*1024];
for (const char **I = CmdL.FileList + 1; *I != 0; I++)
{
regex_t Pattern;
- int Res;
// build regexp for the task
char S[300];
@@ -1450,6 +1448,8 @@ bool DoInstallTask(CommandLine &CmdL)
continue;
TryToInstall(Pkg,Cache,Fix,false,true,ExpectedInst);
}
+
+ regfree(&Pattern);
}
// Call the scored problem resolver