diff --git a/src/libsysprof/rax.c b/src/libsysprof/rax.c index 7172f21b..a74b934c 100644 --- a/src/libsysprof/rax.c +++ b/src/libsysprof/rax.c @@ -1052,6 +1052,7 @@ 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