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);
|
int result = export(name, stdout);
|
||||||
if(!tty)
|
if(!tty)
|
||||||
fclose(stdout);
|
fclose(stdout);
|
||||||
|
|
||||||
|
free(name);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue