xbps-rindex: clean: avoid printing obj key after removal (dangling pointer) v2.

This commit is contained in:
Juan RP 2013-11-27 15:00:37 +01:00
parent a8dc0dbdec
commit 5d63f6f442

View File

@ -148,9 +148,9 @@ index_clean(struct xbps_handle *xhp, const char *repodir)
xbps_array_get_cstring_nocopy(cbd.result, x, &keyname);
printf("index-files: removed entry %s\n", keyname);
printf("index: removed entry %s\n", keyname);
xbps_dictionary_remove(idxfiles, keyname);
pkgname = xbps_pkg_name(keyname);
xbps_dictionary_remove(idx, pkgname);
xbps_dictionary_remove(idxfiles, keyname);
free(pkgname);
flush = true;
}