Fix a tiny memory leak.
Found by cppcheck.
This commit is contained in:
parent
d21f63d5b3
commit
1bb969c930
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue