Skip to content

Commit

Permalink
Fix memory leak in colortap
Browse files Browse the repository at this point in the history
Resolves #157
  • Loading branch information
rrrapha committed Apr 26, 2023
1 parent 3e1234b commit 16b5296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/filter/colortap/colortap.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ f0r_instance_t f0r_construct(unsigned int width, unsigned int height)

void f0r_destruct(f0r_instance_t instance)
{
colortap_instance_t* inst = (colortap_instance_t*)instance;
free(inst->table);
free(instance);
}

Expand Down

0 comments on commit 16b5296

Please sign in to comment.