From: Guus Sliepen Date: Wed, 20 Feb 2013 12:59:50 +0000 (+0100) Subject: Fix a tiny memory leak. X-Git-Tag: release-1.1pre6~3 X-Git-Url: https://tinc-vpn.org/git/browse?a=commitdiff_plain;h=1bb969c9306812d0d5c954fe8db32ed1a248bf20;p=tinc Fix a tiny memory leak. Found by cppcheck. --- 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; }