Project

General

Profile

Bug #790 » 0001-Fix-invalid-pointer-free-with-trace-collection.patch

Francis Giraldeau, 06/15/2015 11:43 AM

View differences:

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;
}
(2-2/2)