Fix: destroy schedule attr
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Wed, 4 Apr 2018 16:20:29 +0000 (12:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 4 Apr 2018 18:14:54 +0000 (14:14 -0400)
CID 1388095 (#9-14 of 14): Resource leak (RESOURCE_LEAK)

Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
src/bin/lttng/commands/enable_rotation.c

index 80ebc8cdc48a59f12a189b436f9d42b4a11cb330..42aa45017d9b29b0eda022ccb5ace06b72399abf 100644 (file)
@@ -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;
 }
 
This page took 0.025079 seconds and 4 git commands to generate.