Skip to content

Commit

Permalink
fgblur: fix potential memory leak
Browse files Browse the repository at this point in the history
Fixes CID 1574182.
  • Loading branch information
mbouron committed Dec 12, 2023
1 parent ba7bdcd commit 1ad2803
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libnopegl/src/node_fgblur.c
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,10 @@ static int resize(struct ngl_node *node)
int32_t mip_height = height;
for (size_t i = 0; i < MAX_MIP_LEVELS; i++) {
mips[i] = ngli_rtt_create(ctx);
if (!mips[i])
return NGL_ERROR_MEMORY;
if (!mips[i]) {
ret = NGL_ERROR_MEMORY;
goto fail;
}

texture_params.width = mip_width;
texture_params.height = mip_height;
Expand Down

0 comments on commit 1ad2803

Please sign in to comment.