Displaying 3 results from an estimated 3 matches for "vorbiscomment_entry_array_delete_".
2015 Jun 28
2
about libFLAC/metadata_object.c
There are two functions:
static void vorbiscomment_entry_array_delete_(FLAC__StreamMetadata_VorbisComment_Entry *object_array, unsigned num_comments);
and
static void cuesheet_track_array_delete_(FLAC__StreamMetadata_CueSheet_Track *object_array, unsigned num_tracks);
which first dereference object_array and only then check it for NULL:
free(obj...
2015 Aug 22
1
[PATCH] for potential memory leaks
Erik de Castro Lopo wrote:
> Working on a fix for this and re-visiting some of this realloc()
> stuff.
I noticed that your patch removes the call to vorbiscomment_entry_array_delete_()
in FLAC__metadata_object_vorbiscomment_resize_comments() function, and I think
that it reintroduces one place of a potential memory leak:
'object->data.vorbis_comment.comments' is a pointer to an array of
FLAC__StreamMetadata_VorbisComment_Entry structs, and these structs contain poin...
2015 Jul 06
5
[PATCH] for potential memory leaks
libFLAC has several places like this:
if(0 == (ptr = realloc(ptr, size)))
return false;
which results in memory leaks if realloc fails (the old value of ptr is lost).
The patch should fix this.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: realloc_memleak_fix.patch
Type: application/octet-stream
Size: 6272 bytes
Desc: not available
Url :