Fix a tiny memory leak.

Found by cppcheck.
This commit is contained in:
Guus Sliepen 2013-02-20 13:59:50 +01:00
parent d21f63d5b3
commit 1bb969c930

View 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;
}