Skip to content

Commit

Permalink
Fix memory leak in flac command line tool (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmf01 authored Sep 30, 2024
1 parent e4f1ee9 commit a89875d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/flac/vorbiscomment.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ static FLAC__bool set_vc_field(FLAC__StreamMetadata *block, const Argument_VcFie
}
free(converted);
if(!FLAC__metadata_object_vorbiscomment_append_comment(block, entry, /*copy=*/false)) {
free(entry.entry);
*violation = "memory allocation failure";
return false;
}
Expand Down

0 comments on commit a89875d

Please sign in to comment.