diff options
author | J. Alexander Treuman <jat@spatialrift.net> | 2006-07-16 19:00:52 +0000 |
---|---|---|
committer | J. Alexander Treuman <jat@spatialrift.net> | 2006-07-16 19:00:52 +0000 |
commit | 93c8aa8b714e026f03ed8afe2dcfd88521658172 (patch) | |
tree | 9431c593acbedb8d76f77be2bee2a0a6ec1080ae /src | |
parent | 5d1df8e25c45ef5c54914a311d809088afdc15c7 (diff) | |
download | mpd-93c8aa8b714e026f03ed8afe2dcfd88521658172.tar.gz mpd-93c8aa8b714e026f03ed8afe2dcfd88521658172.tar.xz mpd-93c8aa8b714e026f03ed8afe2dcfd88521658172.zip |
Fixing what looks like a *huge* memory leak
git-svn-id: https://svn.musicpd.org/mpd/trunk@4372 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src')
-rw-r--r-- | src/playlist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/playlist.c b/src/playlist.c index cf7ff9759..80e9ca185 100644 --- a/src/playlist.c +++ b/src/playlist.c @@ -1486,6 +1486,7 @@ static int PlaylistIterFunc(FILE * fp, char * utf8file, void (*IterFunc)(FILE *f strcpy(s, temp); IterFunc(fp, s, &erroredFile); } + free(temp); } else if(slength==MAXPATHLEN) { s[slength] = '\0'; |