Message ID | 20181101214512.18684-2-ykaradzhov@vmware.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 7b07a3c7e1bd3aadae8c25854a9838d604932e33 |
Headers | show |
Series | This series of patches contains various independent | expand |
diff --git a/kernel-shark-qt/src/libkshark.c b/kernel-shark-qt/src/libkshark.c index 33d25de..64236a5 100644 --- a/kernel-shark-qt/src/libkshark.c +++ b/kernel-shark-qt/src/libkshark.c @@ -188,6 +188,13 @@ void kshark_close(struct kshark_context *kshark_ctx) kshark_ctx->advanced_event_filter = NULL; } + /* + * All data collections are file specific. Make sure that collections + * from this file are not going to be used with another file. + */ + kshark_free_collection_list(kshark_ctx->collections); + kshark_ctx->collections = NULL; + tracecmd_close(kshark_ctx->handle); kshark_ctx->handle = NULL; kshark_ctx->pevent = NULL;
All data collections are file specific. We have to guarantee that collections from one file cannot be used with another file. Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com> --- kernel-shark-qt/src/libkshark.c | 7 +++++++ 1 file changed, 7 insertions(+)