Reported-by: Daniel U. Thibault <daniel.thibault@drdc-rddc.gc.ca>
Signed-off-by: David Goulet <dgoulet@efficios.com>
ret = disable_channels(session_name);
end:
+ if (!opt_session_name && session_name) {
+ free(session_name);
+ }
poptFreeContext(pc);
return ret;
}
ret = disable_events(session_name);
end:
+ if (!opt_session_name && session_name) {
+ free(session_name);
+ }
poptFreeContext(pc);
return ret;
}
ret = enable_channel(session_name);
end:
+ if (!opt_session_name && session_name) {
+ free(session_name);
+ }
poptFreeContext(pc);
return ret;
}