projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: consumer: incorrect size zmalloc
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index 43848bc5e065076c53ca8f3453b8910e8bc16faa..ddfca408b07739b6d18b9853b168b1a60bad5594 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-2352,7
+2352,11
@@
void *consumer_thread_data_poll(void *data)
goto end;
}
goto end;
}
- local_stream = zmalloc(sizeof(struct lttng_consumer_stream));
+ local_stream = zmalloc(sizeof(struct lttng_consumer_stream *));
+ if (local_stream == NULL) {
+ PERROR("local_stream malloc");
+ goto end;
+ }
while (1) {
high_prio = 0;
while (1) {
high_prio = 0;
This page took
0.023999 seconds
and
4
git commands to generate.