From: Jonathan Rajotte Date: Wed, 4 Apr 2018 16:20:29 +0000 (-0400) Subject: Fix: destroy schedule attr X-Git-Tag: v2.11.0-rc1~287 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=4b7e956f92a664e7da9a69786736105d1b27b335 Fix: destroy schedule attr CID 1388095 (#9-14 of 14): Resource leak (RESOURCE_LEAK) Signed-off-by: Jonathan Rajotte --- diff --git a/src/bin/lttng/commands/enable_rotation.c b/src/bin/lttng/commands/enable_rotation.c index 80ebc8cdc..42aa45017 100644 --- a/src/bin/lttng/commands/enable_rotation.c +++ b/src/bin/lttng/commands/enable_rotation.c @@ -152,6 +152,7 @@ static int setup_rotate(char *session_name, uint64_t timer, uint64_t size) error: ret = -1; end: + lttng_rotation_schedule_attr_destroy(attr); return ret; }