projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Note find_ust_app_context must be called with RCU read lock
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index cba4a605a4f8d119d4f324427fe81761b605c240..e37c725c49b095a7c64c6a1b6cd58a52ddb7e803 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-18,6
+18,7
@@
*/
#define _GNU_SOURCE
*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <assert.h>
#include <poll.h>
#include <pthread.h>
#include <assert.h>
#include <poll.h>
#include <pthread.h>
@@
-1404,6
+1405,10
@@
void lttng_consumer_destroy(struct lttng_consumer_local_data *ctx)
DBG("Consumer destroying it. Closing everything.");
DBG("Consumer destroying it. Closing everything.");
+ if (!ctx) {
+ return;
+ }
+
destroy_data_stream_ht(data_ht);
destroy_metadata_stream_ht(metadata_ht);
destroy_data_stream_ht(data_ht);
destroy_metadata_stream_ht(metadata_ht);
This page took
0.023757 seconds
and
4
git commands to generate.