projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: check string payload for NULL before calling g_string_free()
[babeltrace.git]
/
formats
/
ctf
/
ir
/
event-fields.c
diff --git
a/formats/ctf/ir/event-fields.c
b/formats/ctf/ir/event-fields.c
index aefb3af2626bf391449dfb4a0b1f5c50c70edde7..a93cf695c6c5a86c50c41889cd254177b4563640 100644
(file)
--- a/
formats/ctf/ir/event-fields.c
+++ b/
formats/ctf/ir/event-fields.c
@@
-1288,7
+1288,9
@@
void bt_ctf_field_string_destroy(struct bt_ctf_field *field)
}
string = container_of(field, struct bt_ctf_field_string, parent);
- g_string_free(string->payload, TRUE);
+ if (string->payload) {
+ g_string_free(string->payload, TRUE);
+ }
g_free(string);
}
This page took
0.023006 seconds
and
4
git commands to generate.