reducing some memory leaks
git-svn-id: http://opkg.googlecode.com/svn/trunk@140
e8e0d7a0-c8d9-11dd-a880-
a1081c7ac358
hash_table_insert(&conf->obs_file_hash, old_file, old_pkg);
}
}
+ pkg_free_installed_files(old_pkg);
}
+ pkg_free_installed_files(new_pkg);
return 0;
}
// opkg_message(conf, OPKG_DEBUG2, "pkg %s: file=%s\n", pkg->name, installed_file);
file_hash_set_file_owner(conf, installed_file, pkg);
}
+ pkg_free_installed_files(pkg);
}
pkg_vec_free(installed_pkgs);
} else {
fputs(data_file, file);
}
+ free(line);
+ line=NULL;
}
}
fclose(tmp);