if (pkg->state_status == SS_NOT_INSTALLED)
{
/* XXX: Error: Package seems to be not installed (STATUS = NOT_INSTALLED). */
+ opkg_package_free (pdata.package);
return OPKG_PACKAGE_NOT_INSTALLED;
}
progress (pdata, 25);
/* opkg_upgrade_pkg returns the error codes of opkg_install_pkg */
if (err)
{
+
+ opkg_package_free (pdata.package);
switch (err)
{
case OPKG_INSTALL_ERR_NOT_TRUSTED: return OPKG_GPG_ERROR;
progress (pdata, 75);
err = opkg_configure_packages (opkg->conf, NULL);
- if (err)
+ if (err) {
+ opkg_package_free (pdata.package);
return OPKG_UNKNOWN_ERROR;
+ }
/* write out status files and file lists */
opkg_conf_write_status_files (opkg->conf);
package = old_pkg_to_new (pkg);
callback (opkg, package, user_data);
+ opkg_package_free (package);
}
pkg_vec_free (all);
{
package = old_pkg_to_new (new);
callback (opkg, package, user_data);
+ opkg_package_free (package);
}
}