diff --git a/OtherLanguages/js/src/Lerc.ts b/OtherLanguages/js/src/Lerc.ts index c64c20a..31fb318 100755 --- a/OtherLanguages/js/src/Lerc.ts +++ b/OtherLanguages/js/src/Lerc.ts @@ -263,6 +263,7 @@ function initLercLib(lercFactory: LercFactory): void { bandCountWithNoData }; if (bandCountWithNoData) { + _free(ptr); return headerInfo; } if (depthCount === 1 && bandCount === 1) {