Bug #790 » 0001-Fix-invalid-pointer-free-with-trace-collection.patch
lib/context.c | ||
---|---|---|
struct bt_trace_descriptor *td;
|
||
struct bt_format *fmt;
|
||
struct bt_trace_handle *handle;
|
||
int ret, closeret;
|
||
int ret;
|
||
if (!ctx || !format_name || (!path && !stream_list))
|
||
return -EINVAL;
|
||
... | ... | |
return handle->id;
|
||
error:
|
||
closeret = fmt->close_trace(td);
|
||
if (closeret) {
|
||
fprintf(stderr, "Error in close_trace callback\n");
|
||
}
|
||
if (handle)
|
||
bt_context_remove_trace(ctx, handle->id);
|
||
end:
|
||
return ret;
|
||
}
|
- « Previous
- 1
- 2
- Next »