Changeset 52b5f34


Ignore:
Timestamp:
Dec 6, 2013, 3:24:57 AM (6 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/constantq, feature/pitchshift, feature/pydocstrings, feature/timestretch, master, pitchshift, sampler, timestretch, yinfft+
Children:
d67a08e
Parents:
294aff6
Message:

src/io/sink_sndfile.c: avoid a small memory leak when new_sink_sndfile fails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/io/sink_sndfile.c

    r294aff6 r52b5f34  
    7171    /* show libsndfile err msg */
    7272    AUBIO_ERR("Failed opening %s. %s\n", s->path, sf_strerror (NULL));
     73    AUBIO_FREE(s);
    7374    return NULL;
    7475  }     
     
    7980    AUBIO_ERR("%d x %d exceeds maximum aubio_sink_sndfile buffer size %d\n",
    8081        s->max_size, s->channels, MAX_CHANNELS * MAX_CHANNELS);
     82    AUBIO_FREE(s);
    8183    return NULL;
    8284  }
Note: See TracChangeset for help on using the changeset viewer.