CID
1452634 (#1 of 1): Resource leak (RESOURCE_LEAK)
23. leaked_storage: Variable error going out of scope leaks the storage
it points to.
The code path shown by Coverity does not appear reachable, but this
fixes the warning nonetheless.
Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I9682616b123de108c5717cee2c17349212f224d5
error:
lttng_action_destroy(action);
action = NULL;
- free(error);
end:
+ free(error);
lttng_rate_policy_destroy(policy);
argpar_state_destroy(state);
argpar_item_destroy(item);