From 00adebb7216112fb86a8186e039ca0ecd1b825ba Mon Sep 17 00:00:00 2001 From: Marek Schimara Date: Thu, 4 May 2017 10:26:18 +0200 Subject: [PATCH] src/rrd_tune.c: fix Coverity CID #32826 Resource leak --- src/rrd_tune.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rrd_tune.c b/src/rrd_tune.c index 2a90cb2e..c82fe874 100644 --- a/src/rrd_tune.c +++ b/src/rrd_tune.c @@ -145,6 +145,7 @@ int rrd_tune( // connect to daemon (will take care of environment variable automatically) if (rrdc_connect(opt_daemon) != 0) { rrd_set_error("Cannot connect to daemon"); + free(opt_daemon); return 1; } -- 2.47.3