Revert "libsysprof: Avoid a use-after-free in raxRemove"

This reverts commit bb83598b12.

See !63 and #84
This commit is contained in:
Christian Hergert
2023-01-26 10:59:22 -08:00
parent e3721b8687
commit 1e1a719895

View File

@ -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