From c71b80102481ccd93e1db9fd15ea28be8ed32cc9 Mon Sep 17 00:00:00 2001 From: Marcus Burghardt Date: Tue, 22 Oct 2019 14:39:27 +0000 Subject: [PATCH] Bug 1590339 - Fix MemoryLeak in btoa.c. r=kjacobs Differential Revision: https://phabricator.services.mozilla.com/D50042 --HG-- extra : moz-landing-system : lando --- cmd/btoa/btoa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/btoa/btoa.c b/cmd/btoa/btoa.c index aeff0671f3..f82341325b 100644 --- a/cmd/btoa/btoa.c +++ b/cmd/btoa/btoa.c @@ -211,5 +211,8 @@ main(int argc, char **argv) if (outFile && closeOut) { fclose(outFile); } + if (suffix) { + PORT_Free(suffix); + } return exitCode; }