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 jump to error on allocation failure
[lttng-tools.git]
/
src
/
lib
/
lttng-ctl
/
lttng-ctl.c
diff --git
a/src/lib/lttng-ctl/lttng-ctl.c
b/src/lib/lttng-ctl/lttng-ctl.c
index f503fd1cbf42a25660a990d869c7adeb467cc823..c8d60cddcaee5e5bd9e2323c680c5dc710104cfc 100644
(file)
--- a/
src/lib/lttng-ctl/lttng-ctl.c
+++ b/
src/lib/lttng-ctl/lttng-ctl.c
@@
-2039,7
+2039,6
@@
int lttng_list_events(struct lttng_handle *handle,
probe_storage_req = ret;
comm_ext_at += ext_comm->userspace_probe_location_len;
probe_storage_req = ret;
comm_ext_at += ext_comm->userspace_probe_location_len;
- ret = 0;
}
storage_req += sizeof(struct lttng_event_extended);
}
storage_req += sizeof(struct lttng_event_extended);
@@
-2115,6
+2114,7
@@
int lttng_list_events(struct lttng_handle *handle,
ext_comm->nb_exclusions * LTTNG_SYMBOL_NAME_LEN);
if (ret) {
ret = -LTTNG_ERR_NOMEM;
ext_comm->nb_exclusions * LTTNG_SYMBOL_NAME_LEN);
if (ret) {
ret = -LTTNG_ERR_NOMEM;
+ goto free_dynamic_buffer;
}
comm_ext_at += ext_comm->nb_exclusions * LTTNG_SYMBOL_NAME_LEN;
}
}
comm_ext_at += ext_comm->nb_exclusions * LTTNG_SYMBOL_NAME_LEN;
}
This page took
0.024364 seconds
and
4
git commands to generate.