projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: dereference after NULL check
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
ust-app.c
diff --git
a/src/bin/lttng-sessiond/ust-app.c
b/src/bin/lttng-sessiond/ust-app.c
index 5710226fc4504cb609eefa0b31ac4c989e15276a..dfc4599be858315b3a2b25956b0daa49e9d24bd2 100644
(file)
--- a/
src/bin/lttng-sessiond/ust-app.c
+++ b/
src/bin/lttng-sessiond/ust-app.c
@@
-2404,7
+2404,7
@@
static int create_ust_app_channel(struct ust_app_session *ua_sess,
if (ua_chan == NULL) {
/* Only malloc can fail here */
ret = -ENOMEM;
if (ua_chan == NULL) {
/* Only malloc can fail here */
ret = -ENOMEM;
- goto error;
+ goto error
_alloc
;
}
shadow_copy_channel(ua_chan, uchan);
}
shadow_copy_channel(ua_chan, uchan);
@@
-2432,6
+2432,7
@@
end:
error:
delete_ust_app_channel(ua_chan->is_sent ? app->sock : -1, ua_chan, app);
error:
delete_ust_app_channel(ua_chan->is_sent ? app->sock : -1, ua_chan, app);
+error_alloc:
return ret;
}
return ret;
}
This page took
0.023553 seconds
and
4
git commands to generate.