Fix a tiny memory leak.
authorGuus Sliepen <guus@tinc-vpn.org>
Wed, 20 Feb 2013 12:59:50 +0000 (13:59 +0100)
committerGuus Sliepen <guus@tinc-vpn.org>
Wed, 20 Feb 2013 12:59:50 +0000 (13:59 +0100)
Found by cppcheck.

src/tincctl.c

index eaf14e0..45bf6ee 100644 (file)
@@ -1838,6 +1838,8 @@ static int cmd_export(int argc, char *argv[]) {
        int result = export(name, stdout);
        if(!tty)
                fclose(stdout);
+
+       free(name);
        return result;
 }