fprintf(ofp, "will be added to all events and all channels.\n");
fprintf(ofp, "Otherwise the context will be added only to the channel (-c)\n");
fprintf(ofp, "and/or event (-e) indicated.\n");
+ fprintf(ofp, "Exactly one domain (-k/--kernel or -u/--userspace) must be specified.\n");
fprintf(ofp, "\n");
fprintf(ofp, "Options:\n");
fprintf(ofp, " -h, --help Show this help\n");
ret = add_context(session_name);
+ if (!opt_session_name) {
+ free(session_name);
+ }
+
end:
/* Cleanup allocated memory */
cds_list_for_each_entry_safe(type, tmptype, &ctx_type_list.head, list) {