projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: reference counting of consumer output
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
utils.c
diff --git
a/src/bin/lttng-sessiond/utils.c
b/src/bin/lttng-sessiond/utils.c
index 2ff57cd1465c6071eb0d89705b061ef3dafac05f..fef31803f181b9c5aaebeec9b9e6dd025d30247f 100644
(file)
--- a/
src/bin/lttng-sessiond/utils.c
+++ b/
src/bin/lttng-sessiond/utils.c
@@
-17,6
+17,7
@@
*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <stdlib.h>
#include <unistd.h>
@@
-52,6
+53,9
@@
void ht_cleanup_push(struct lttng_ht *ht)
ssize_t ret;
int fd = ht_cleanup_pipe[1];
+ if (!ht) {
+ return;
+ }
if (fd < 0)
return;
ret = lttng_write(fd, &ht, sizeof(ht));
This page took
0.024932 seconds
and
4
git commands to generate.