From 25abd20abaaa030fbdc1d1d909874790e36f82b8 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Sun, 01 Nov 2009 20:35:59 -0500 Subject: pkg_init_from_file() already does this strdup(), so stop another leak. git-svn-id: http://opkg.googlecode.com/svn/trunk@235 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg_install.c') diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index aae72be..601d838 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -105,8 +105,6 @@ int opkg_install_from_file(opkg_conf_t *conf, const char *filename) pkg = hash_insert_pkg(&conf->pkg_hash, pkg, 1,conf); old = pkg_hash_fetch_installed_by_name(&conf->pkg_hash, pkg->name); - pkg->local_filename = strdup(filename); - if (old) { old_version = pkg_version_str_alloc(old); new_version = pkg_version_str_alloc(pkg); -- cgit v0.9.1