projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: intialization of ust_metadata_poll_pipe to garbage value
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
stream.c
diff --git
a/src/bin/lttng-relayd/stream.c
b/src/bin/lttng-relayd/stream.c
index 410fae86146048bab2ea975f43b2fa434eb62623..17a5bcd4f791f508fd2b349635af904e2cf7f057 100644
(file)
--- a/
src/bin/lttng-relayd/stream.c
+++ b/
src/bin/lttng-relayd/stream.c
@@
-17,22
+17,13
@@
*/
#define _GNU_SOURCE
*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <common/common.h>
#include "index.h"
#include "stream.h"
#include "viewer-stream.h"
#include <common/common.h>
#include "index.h"
#include "stream.h"
#include "viewer-stream.h"
-static void rcu_destroy_stream(struct rcu_head *head)
-{
- struct relay_stream *stream =
- caa_container_of(head, struct relay_stream, rcu_node);
-
- free(stream->path_name);
- free(stream->channel_name);
- free(stream);
-}
-
/*
* Get stream from stream id from the given hash table. Return stream if found
* else NULL.
/*
* Get stream from stream id from the given hash table. Return stream if found
* else NULL.
@@
-149,6
+140,7
@@
void stream_delete(struct lttng_ht *ht, struct relay_stream *stream)
void stream_destroy(struct relay_stream *stream)
{
assert(stream);
void stream_destroy(struct relay_stream *stream)
{
assert(stream);
-
- call_rcu(&stream->rcu_node, rcu_destroy_stream);
+ free(stream->path_name);
+ free(stream->channel_name);
+ free(stream);
}
}
This page took
0.024632 seconds
and
4
git commands to generate.