projects
/
lttng-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a10f04a
)
Fix: possible use after free in consumer
author
David Goulet
<dgoulet@efficios.com>
Mon, 26 May 2014 18:12:23 +0000
(14:12 -0400)
committer
David Goulet
<dgoulet@efficios.com>
Mon, 26 May 2014 18:12:23 +0000
(14:12 -0400)
Fixes the coverity issue
1019959
.
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/consumer.c
patch
|
blob
|
blame
|
history
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index cba4a605a4f8d119d4f324427fe81761b605c240..999e400059fbe763264698a75c67b3fb80d6c717 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-1404,6
+1404,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.031264 seconds
and
4
git commands to generate.