projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove null checks on g_new0
[babeltrace.git]
/
formats
/
lttng-live
/
lttng-live.c
diff --git
a/formats/lttng-live/lttng-live.c
b/formats/lttng-live/lttng-live.c
index c44d02c7e38c51d7797a2aad021404978780d30b..831877ab36cc016de15ac50aef281510ad699f4b 100644
(file)
--- a/
formats/lttng-live/lttng-live.c
+++ b/
formats/lttng-live/lttng-live.c
@@
-106,10
+106,7
@@
static int lttng_live_open_trace_read(const char *path)
opt_payload_field_names = 1;
ctx.session = g_new0(struct lttng_live_session, 1);
opt_payload_field_names = 1;
ctx.session = g_new0(struct lttng_live_session, 1);
- if (!ctx.session) {
- ret = -1;
- goto end;
- }
+
/* We need a pointer to the context from the packet_seek function. */
ctx.session->ctx = &ctx;
/* We need a pointer to the context from the packet_seek function. */
ctx.session->ctx = &ctx;
@@
-148,7
+145,6
@@
static int lttng_live_open_trace_read(const char *path)
end_free:
g_hash_table_destroy(ctx.session->ctf_traces);
g_free(ctx.session);
end_free:
g_hash_table_destroy(ctx.session->ctf_traces);
g_free(ctx.session);
-end:
g_free(ctx.session->streams);
return ret;
}
g_free(ctx.session->streams);
return ret;
}
This page took
0.023331 seconds
and
4
git commands to generate.