projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: Missing rcu_read_lock in get_session_max_subbuf_size()
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
main.c
diff --git
a/src/bin/lttng-sessiond/main.c
b/src/bin/lttng-sessiond/main.c
index 977f131c0c0db6a094b85620b826fe15e4114bb1..cec2cd0830d3bef9c2f1dcc4e27838de2a77ee07 100644
(file)
--- a/
src/bin/lttng-sessiond/main.c
+++ b/
src/bin/lttng-sessiond/main.c
@@
-3212,12
+3212,14
@@
skip_domain:
if (bytecode_len > LTTNG_FILTER_MAX_LEN) {
ret = LTTNG_ERR_FILTER_INVAL;
if (bytecode_len > LTTNG_FILTER_MAX_LEN) {
ret = LTTNG_ERR_FILTER_INVAL;
+ free(filter_expression);
free(exclusion);
goto error;
}
bytecode = zmalloc(bytecode_len);
if (!bytecode) {
free(exclusion);
goto error;
}
bytecode = zmalloc(bytecode_len);
if (!bytecode) {
+ free(filter_expression);
free(exclusion);
ret = LTTNG_ERR_FILTER_NOMEM;
goto error;
free(exclusion);
ret = LTTNG_ERR_FILTER_NOMEM;
goto error;
@@
-3229,6
+3231,7
@@
skip_domain:
if (ret <= 0) {
DBG("Nothing recv() from client car len data... continuing");
*sock_error = 1;
if (ret <= 0) {
DBG("Nothing recv() from client car len data... continuing");
*sock_error = 1;
+ free(filter_expression);
free(bytecode);
free(exclusion);
ret = LTTNG_ERR_FILTER_INVAL;
free(bytecode);
free(exclusion);
ret = LTTNG_ERR_FILTER_INVAL;
@@
-3236,6
+3239,7
@@
skip_domain:
}
if ((bytecode->len + sizeof(*bytecode)) != bytecode_len) {
}
if ((bytecode->len + sizeof(*bytecode)) != bytecode_len) {
+ free(filter_expression);
free(bytecode);
free(exclusion);
ret = LTTNG_ERR_FILTER_INVAL;
free(bytecode);
free(exclusion);
ret = LTTNG_ERR_FILTER_INVAL;
This page took
0.023624 seconds
and
4
git commands to generate.