aboutsummaryrefslogtreecommitdiffstats
path: root/src/package.c
diff options
context:
space:
mode:
authorJason Woodward2009-09-10 11:03:56 +0000
committerJason Woodward2009-09-10 11:03:56 +0000
commit3b6f68c575f694ff532a60f5b4f65b02a08fc280 (patch)
tree48743c9ec181db999d32cb14625b1edd7cdec7b7 /src/package.c
parentb09ce22916f6b2fed483cdb15bc48b4f7a839a4e (diff)
downloadslapt-get-3b6f68c575f694ff532a60f5b4f65b02a08fc280.tar.gz
free pkg_log_dirname as soon as possible
Diffstat (limited to 'src/package.c')
-rw-r--r--src/package.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/package.c b/src/package.c
index 0694b6c..3e739ee 100644
--- a/src/package.c
+++ b/src/package.c
@@ -3476,6 +3476,8 @@ char *slapt_get_pkg_filelist(const slapt_pkg_info_t *pkg)
strncat(pkg_f_name,"/",1);
strncat(pkg_f_name,pkg_name,strlen(pkg_name));
+ free(pkg_log_dirname);
+
/*
open the package log file so that we can mmap it and parse out the
file list.
@@ -3571,7 +3573,6 @@ char *slapt_get_pkg_filelist(const slapt_pkg_info_t *pkg)
exit(EXIT_FAILURE);
}
free(pkg_f_name);
- free(pkg_log_dirname);
free(pkg_name);
return filelist;