From 4b7e956f92a664e7da9a69786736105d1b27b335 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 4 Apr 2018 12:20:29 -0400 Subject: [PATCH] Fix: destroy schedule attr CID 1388095 (#9-14 of 14): Resource leak (RESOURCE_LEAK) Signed-off-by: Jonathan Rajotte --- src/bin/lttng/commands/enable_rotation.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.34.1