From a8dc0dbdec7face3bfcb5f512f05202b37ea2cf7 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 27 Nov 2013 14:54:21 +0100 Subject: [PATCH] xbps-rindex: clean: avoid printing obj key after removal (dangling pointer). --- bin/xbps-rindex/index-clean.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xbps-rindex/index-clean.c b/bin/xbps-rindex/index-clean.c index 778f26ec..7d4395c7 100644 --- a/bin/xbps-rindex/index-clean.c +++ b/bin/xbps-rindex/index-clean.c @@ -147,10 +147,10 @@ index_clean(struct xbps_handle *xhp, const char *repodir) for (unsigned int x = 0; x < xbps_array_count(cbd.result); x++) { 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); - printf("index: removed entry %s\n", keyname); free(pkgname); flush = true; }