Blame SOURCES/ltrace-0.7.91-W-use-after-free.patch

8d9cfe
diff -rup a/sysdeps/linux-gnu/ppc/plt.c b/sysdeps/linux-gnu/ppc/plt.c
8d9cfe
--- a/sysdeps/linux-gnu/ppc/plt.c	2022-01-27 20:40:52.956980433 -0500
8d9cfe
+++ b/sysdeps/linux-gnu/ppc/plt.c	2022-01-27 20:41:37.031599771 -0500
8d9cfe
@@ -687,8 +687,8 @@ arch_elf_add_func_entry(struct process *
8d9cfe
 		if (libsym == NULL
8d9cfe
 		    || library_symbol_init(libsym, addr, full_name, 1,
8d9cfe
 					   LS_TOPLT_NONE) < 0) {
8d9cfe
-			free(libsym);
8d9cfe
 			delete_symbol_chain(libsym);
8d9cfe
+			free(libsym);
8d9cfe
 			libsym = NULL;
8d9cfe
 			fprintf(stderr, "Couldn't add symbol %s"
8d9cfe
 				"for tracing.\n", name);