Fix a tiny memory leak.
[tinc] / 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;
 }