summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorMarcus Burghardt <mburghardt@mozilla.com>2019-10-22 14:39:27 +0000
committerMarcus Burghardt <mburghardt@mozilla.com>2019-10-22 14:39:27 +0000
commitf632ad717c82e6e9ef37e5aa221932d0aa26414f (patch)
treee499336ce08ed0b8def06b9db13afe5760d80062 /cmd
parent9a494e9af4c230979c44c99caf850b24cd06ac67 (diff)
downloadnss-hg-f632ad717c82e6e9ef37e5aa221932d0aa26414f.tar.gz
Bug 1590339 - Fix MemoryLeak in btoa.c. r=kjacobs
Differential Revision: https://phabricator.services.mozilla.com/D50042
Diffstat (limited to 'cmd')
-rw-r--r--cmd/btoa/btoa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/btoa/btoa.c b/cmd/btoa/btoa.c
index aeff0671f..f82341325 100644
--- a/cmd/btoa/btoa.c
+++ b/cmd/btoa/btoa.c
@@ -211,5 +211,8 @@ loser:
if (outFile && closeOut) {
fclose(outFile);
}
+ if (suffix) {
+ PORT_Free(suffix);
+ }
return exitCode;
}