projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: possible use after free in consumer
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index aacabdb76d4acc5e54bd3cb9434bd789e0b71ca0..e11e46077c720d9023191024ae80af1a220f8d8b 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-1308,6
+1308,10
@@
void lttng_consumer_destroy(struct lttng_consumer_local_data *ctx)
DBG("Consumer destroying it. Closing everything.");
+ if (!ctx) {
+ return;
+ }
+
destroy_data_stream_ht(data_ht);
destroy_metadata_stream_ht(metadata_ht);
This page took
0.024076 seconds
and
4
git commands to generate.