From 1e1a71989568f16f78934c225d467876b8571c0c Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Thu, 26 Jan 2023 10:59:22 -0800 Subject: [PATCH] Revert "libsysprof: Avoid a use-after-free in raxRemove" This reverts commit bb83598b128de5ecd505b7f8edbccd450ef54dcf. See !63 and #84 --- src/libsysprof/rax.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libsysprof/rax.c b/src/libsysprof/rax.c index a74b934c..7172f21b 100644 --- a/src/libsysprof/rax.c +++ b/src/libsysprof/rax.c @@ -1052,7 +1052,6 @@ int raxRemove(rax *rax, unsigned char *s, size_t len, void **old) { debugf("Freeing child %p [%.*s] key:%d\n", (void*)child, (int)child->size, (char*)child->data, child->iskey); rax_free(child); - child = NULL; rax->numnodes--; h = raxStackPop(&ts); /* If this node has more then one child, or actually holds