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 6, 2022
1 parent 7513475 commit f1d5a17
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 f1d5a17

Please sign in to comment.