From eec8d13a5cf9c953b5fcf884553e9a5ca8028ecd Mon Sep 17 00:00:00 2001 From: ENGO150 Date: Thu, 2 Feb 2023 17:56:56 +0100 Subject: [PATCH] added identifier reset at the end of why2_clean_memory --- src/core/lib/utils/memory.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/lib/utils/memory.c b/src/core/lib/utils/memory.c index ad9c812..5a1c45a 100644 --- a/src/core/lib/utils/memory.c +++ b/src/core/lib/utils/memory.c @@ -153,4 +153,6 @@ void why2_clean_memory(char *identifier) } if (buffer -> identifier == identifier) remove_node(buffer); //LAST NODE + + why2_reset_memory_identifier(); //THIS WILL CAUSE SEGFAULT IF YOU DIDN'T USE why2_set_memory_identifier } \ No newline at end of file