aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2003-10-05 02:25:06 +0000
committerJason Woodward2003-10-05 02:25:06 +0000
commit41543b11e7ed87e0c9c41544dd0af8392ce15c9d (patch)
tree2b55ae2f0da35c0930fe3bb4b582fed12a6ee655
parent90984e5a7c251b5a09fe85ec5c1052402f002270 (diff)
downloadslapt-get-41543b11e7ed87e0c9c41544dd0af8392ce15c9d.tar.gz
removed bad free() in get_installed_pkgs()
-rw-r--r--ChangeLog3
-rw-r--r--Makefile2
-rw-r--r--src/package.c1
3 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5f239e8..ef32112 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
+0.9.5c Oct 04, 2003
+ * removed bad free() in get_installed_pkgs()
+
0.9.5b Oct 02, 2003
* yet another improvement to pkg version checking, xspace pointed
out another example of how pkg versions might slip through cmp routine.
diff --git a/Makefile b/Makefile
index 3215a56..124288e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
PROGRAM_NAME=slapt-get
-VERSION=0.9.5b
+VERSION=0.9.5c
ARCH=i386
RELEASE=1
CC=gcc
diff --git a/src/package.c b/src/package.c
index c4fa9b3..0e82ab0 100644
--- a/src/package.c
+++ b/src/package.c
@@ -285,7 +285,6 @@ struct pkg_list *get_installed_pkgs(void){
exit(1);
}
memcpy(list->pkgs[list->pkg_count],tmp_pkg,sizeof *tmp_pkg);
- if( existing_pkg ) free(existing_pkg);
list->pkg_count++;
/* grow our pkgs array */