From: Mathieu Desnoyers Date: Fri, 26 Aug 2011 19:51:33 +0000 (-0400) Subject: Reset handle table on destroy X-Git-Tag: v1.9.1~228 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=02fb33819486765abe837521d9fb4ced14200dda;p=lttng-ust.git Reset handle table on destroy Signed-off-by: Mathieu Desnoyers --- diff --git a/libust/lttng-ust-abi.c b/libust/lttng-ust-abi.c index 53dd9a27..ccaa17fa 100644 --- a/libust/lttng-ust-abi.c +++ b/libust/lttng-ust-abi.c @@ -188,6 +188,9 @@ void objd_table_destroy(void) ops->release(i); } free(objd_table.array); + objd_table.array = NULL; + objd_table.len = 0; + objd_table.allocated_len = 0; objd_table.freelist_head = -1; }