]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
src/rrd_create.c: fix Coverity CID#26529 Resource leak
authorMarek Schimara <Marek.Schimara@bull.net>
Thu, 16 Jun 2016 11:18:37 +0000 (13:18 +0200)
committerMarek Schimara <Marek.Schimara@bull.net>
Thu, 23 Jun 2016 14:32:33 +0000 (16:32 +0200)
        CWE-404 / https://cwe.mitre.org/data/definitions/404.html

src/rrd_create.c

index e29beddb469dce05719f01bfec70fa064ad09170..1c11ac798ceafed68b33273c6f352420c436584b 100644 (file)
@@ -238,6 +238,7 @@ done:
         free(template);
         template = NULL;
     }
+    if (opt_daemon) free(opt_daemon);
     return rc;
 }