summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-04-25 09:15:32 +0200
committerDan McGee <dan@archlinux.org>2007-04-25 17:07:48 +0200
commit7760f5fe60253bd9aa674c6a6688d9d07668db2e (patch)
treeb7202c8ddbaf282b24f00a7b26b3395f9b57f6ed /src/pacman/pacman.c
parent828f1f53eff4e47eb0370a0d9195281974859ce5 (diff)
downloadpacman-7760f5fe60253bd9aa674c6a6688d9d07668db2e.tar.gz
pacman-7760f5fe60253bd9aa674c6a6688d9d07668db2e.tar.xz
Remove more unnecessary stuff
* Remove libintl.h from most files, as we only need to include it once in util.h where _() is defined. * Remove other unnecessary header inclusions. * Remove a macro that was only used once and replaced it with actual code. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 5fd32ba7..6178b71a 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -233,7 +233,10 @@ static void cleanup(int signum)
/* free memory */
FREELIST(pm_targets);
- FREECONF(config);
+ if(config) {
+ config_free(config);
+ config = NULL;
+ }
/* This fixes up any missing newlines (neednl) */
MSG(NL, "");