Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
libsndfile.4624
0003-src-flac.c-Fix-another-memory-leak.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-src-flac.c-Fix-another-memory-leak.patch of Package libsndfile.4624
From cd7da8dbf6ee4310d21d9e44b385d6797160d9e8 Mon Sep 17 00:00:00 2001 From: Erik de Castro Lopo <erikd@mega-nerd.com> Date: Wed, 12 Apr 2017 20:19:34 +1000 Subject: [PATCH] src/flac.c: Fix another memory leak When the FLAC decoder was passed a malformed file, the associated `FLAC__StreamDecoder` object was not getting released. Closes: https://github.com/erikd/libsndfile/issues/233 --- src/flac.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) --- a/src/flac.c +++ b/src/flac.c @@ -808,7 +808,9 @@ flac_read_header (SF_PRIVATE *psf) psf_log_printf (psf, "End\n") ; - if (psf->error == 0) + if (psf->error != 0) + FLAC__stream_decoder_delete (pflac->fsd) ; + else { FLAC__uint64 position ; FLAC__stream_decoder_get_decode_position (pflac->fsd, &position) ;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor