Anthony DeRobertis 9c5d8c7fd2 Fix memory leak with multi-picture FLAC files.
On my music archive, minidlnad wasn't anywhere near through scanning,
and had already leaked in excess of 10GiB from this.

The basic problem is that song_metadata has one image pointer. When it
sees a picture metadata item, it mallocs some space and copies the
picture to that, then sets the image pointer. That's all well and good,
except FLAC (and some other formats, haven't checked them) allow more
than one picture. So on the second picture, it does the same
thing—except overwriting the previous pointer, thus leaking it.

Simple fix: check if != NULL, ignore picture.

Signed-off-by: Justin Maggard <jmaggard@netgear.com>
2015-07-14 23:11:07 -07:00
2014-02-03 11:43:40 -08:00
2011-11-02 06:59:48 +00:00
2013-11-01 18:05:31 -07:00
2008-10-23 17:30:45 +00:00
2014-03-06 17:09:39 -08:00
2014-07-11 18:16:33 -07:00
2014-08-26 14:09:22 -07:00
2014-03-12 11:40:49 -07:00
2011-09-21 21:55:56 +00:00
2013-11-01 18:05:31 -07:00
2014-04-21 15:43:13 -07:00
2014-04-21 15:43:13 -07:00
2012-06-30 00:26:55 +00:00
2014-08-26 14:09:22 -07:00
2014-05-14 17:53:25 -07:00
2014-05-14 17:53:25 -07:00
2014-03-07 12:42:40 -08:00

MiniDLNA project
(c) 2009 Justin Maggard
Portions (c) 2006-2007 Thomas Bernard
webpage: http://sourceforge.net/projects/minidlna/

This directory contains the MiniDLNA daemon software.
This software is subject to the conditions detailed in
the LICENCE file provided with this distribution.

Parts of the software including the discovery code are
licensed under the BSD revised license which is detailed
in the LICENSE.miniupnpd file provided with the distribution.
More information on MiniUPnPd can be found at http://miniupnp.free.fr.


The MiniDLNA daemon is an UPnP-A/V and DLNA service which
serves multimedia content to compatible clients on the network.
See http://www.upnp.org/ for more details on UPnP
and http://www.dlna.org/ for mode details on DLNA.

See the INSTALL file for instructions on compiling, installing,
and configuring minidlna.

Prerequisites
==================

- libexif
- libjpeg
- libid3tag
- libFLAC
- libvorbis
- libsqlite3
- libavformat (the ffmpeg libraries)


Justin Maggard
Description
A fork of readymedia/minidlna with opus support added
Readme 1.6 MiB
Languages
C 96.4%
M4 2.2%
Roff 0.8%
Shell 0.3%
Makefile 0.3%