Reset handle table on destroy
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Aug 2011 19:51:33 +0000 (15:51 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 26 Aug 2011 19:51:33 +0000 (15:51 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libust/lttng-ust-abi.c

index 53dd9a27c3e5793da02c8a437e69ace195d3c0c8..ccaa17fa9ba56bbf3a9cf8a81b0d134ca27fe1bb 100644 (file)
@@ -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;
 }
 
This page took 0.024138 seconds and 4 git commands to generate.