From 1bb969c9306812d0d5c954fe8db32ed1a248bf20 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Wed, 20 Feb 2013 13:59:50 +0100 Subject: [PATCH] Fix a tiny memory leak. Found by cppcheck. --- src/tincctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tincctl.c b/src/tincctl.c index eaf14e03..45bf6ee5 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -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; } -- 2.20.1