Skip to content

Commit

Permalink
Fix memory leak related to image buffers
Browse files Browse the repository at this point in the history
Fixes #136
  • Loading branch information
BenBE committed Mar 13, 2022
1 parent 75d300b commit 9f7cac1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/libbackscrub.cc
Original file line number Diff line number Diff line change
Expand Up @@ -283,12 +283,6 @@ void bs_maskgen_delete(void *context) {

backscrub_ctx_t &ctx = *((backscrub_ctx_t *)context);

// clear all mask data
ctx.ofinal.deallocate();
ctx.mask.deallocate();
ctx.input.deallocate();
ctx.output.deallocate();

// drop interpreter (if present)
if (ctx.interpreter != nullptr)
ctx.interpreter.reset();
Expand Down

0 comments on commit 9f7cac1

Please sign in to comment.