I just installed the version of minidlna from Debian's unstable distribution and I found some coding errors that should be fixed in the near future.
As I wrote on the Debian BTS:
> Unfortunately, the code seems to have some bad coding mistakes that will
> probably manifest themselves in the future as plain bugs and/or security
> issues, so I am reporting this in advance.
> Attached is the gzipped output of "cppcheck -v -s ." in the unpacked
> directory of "apt-get source minidlna".
> It would be good to let upstream know about these issues.