Skip to content

Commit

Permalink
JS: fix small mem leak when noData band exists in ndim data
Browse files Browse the repository at this point in the history
  • Loading branch information
wju committed Oct 6, 2023
1 parent facdee4 commit e35e9e9
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 e35e9e9

Please sign in to comment.