projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lib: trace IR, values: reset pointers to `NULL` on destruction
[babeltrace.git]
/
lib
/
trace-ir
/
clock-class.c
diff --git
a/lib/trace-ir/clock-class.c
b/lib/trace-ir/clock-class.c
index d268ec3f560d15f9bb609ddaf10bc71eed59037b..4cfd01c852128e46eb178375b28298a6557891d4 100644
(file)
--- a/
lib/trace-ir/clock-class.c
+++ b/
lib/trace-ir/clock-class.c
@@
-50,10
+50,14
@@
void destroy_clock_class(struct bt_object *obj)
if (clock_class->name.str) {
g_string_free(clock_class->name.str, TRUE);
if (clock_class->name.str) {
g_string_free(clock_class->name.str, TRUE);
+ clock_class->name.str = NULL;
+ clock_class->name.value = NULL;
}
if (clock_class->description.str) {
g_string_free(clock_class->description.str, TRUE);
}
if (clock_class->description.str) {
g_string_free(clock_class->description.str, TRUE);
+ clock_class->description.str = NULL;
+ clock_class->description.value = NULL;
}
bt_object_pool_finalize(&clock_class->cv_pool);
}
bt_object_pool_finalize(&clock_class->cv_pool);
This page took
0.024952 seconds
and
4
git commands to generate.