Skip to content

Commit

Permalink
nax0: Close file descriptor in nax0_save() when done with it
Browse files Browse the repository at this point in the history
Avoids a resource leak.
  • Loading branch information
lioncash committed Aug 12, 2018
1 parent 17ada97 commit ff6c8eb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nax0.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ void nax0_save(nax0_ctx_t *ctx) {
ofs += read_size;
}

fclose(f_dec);
free(buf);
}

Expand Down

0 comments on commit ff6c8eb

Please sign in to comment.