diff options
author | Max Kellermann <max@duempel.org> | 2008-04-12 04:11:17 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-04-12 04:11:17 +0000 |
commit | 63b55b9a48bfa59f541adab8629d9927e040c714 (patch) | |
tree | 080c4c096d608166b920e1e3847350131a3bc98c /src/directory.c | |
parent | d3f72d102325ff8ad1f41087f9327ae9fa228b6b (diff) | |
download | mpd-63b55b9a48bfa59f541adab8629d9927e040c714.tar.gz mpd-63b55b9a48bfa59f541adab8629d9927e040c714.tar.xz mpd-63b55b9a48bfa59f541adab8629d9927e040c714.zip |
use free()+malloc() instead of realloc()
realloc() has to copy data to the new buffer. Since convBuffer
contains temporary data only, we can safely use free() plus a new
malloc(), which saves the mempy().
git-svn-id: https://svn.musicpd.org/mpd/trunk@7246 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions