Skip to content

Commit

Permalink
Merge pull request #242 from Esri/js-ndepth-nodata-fix
Browse files Browse the repository at this point in the history
JS: fix small mem leak when noData band exists in ndim data
  • Loading branch information
tmaurer3 authored Oct 6, 2023
2 parents facdee4 + e35e9e9 commit 0a342db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OtherLanguages/js/src/Lerc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ function initLercLib(lercFactory: LercFactory): void {
bandCountWithNoData
};
if (bandCountWithNoData) {
_free(ptr);
return headerInfo;
}
if (depthCount === 1 && bandCount === 1) {
Expand Down

0 comments on commit 0a342db

Please sign in to comment.