From f7eccd4bb54039f94312a56b40599d7cb446951e Mon Sep 17 00:00:00 2001 From: ticktock35 Date: Mon, 15 Dec 2008 00:18:44 -0500 Subject: opkg: (leak fixing, day 2) lots and lots of memory leaks fixed git-svn-id: http://opkg.googlecode.com/svn/trunk@115 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'tests') diff --git a/tests/libopkg_test.c b/tests/libopkg_test.c index 6288bd4..cab09b4 100644 --- a/tests/libopkg_test.c +++ b/tests/libopkg_test.c @@ -38,6 +38,7 @@ void package_list_upgradable_callback (opkg_t *opkg, opkg_package_t *pkg, void *data) { printf ("%s - %s\n", pkg->name, pkg->version); + opkg_package_free (pkg); } void @@ -91,11 +92,11 @@ main (int argc, char **argv) if (pkg) { print_package (pkg); - opkg_package_free (find_pkg); opkg_package_free (pkg); } else printf ("Package \"%s\" not found!\n", find_pkg->name); + opkg_package_free (find_pkg); } else printf ("No package available to test find_package.\n"); -- cgit v0.9.1