Fixing what looks like a *huge* memory leak

git-svn-id: https://svn.musicpd.org/mpd/trunk@4372 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2006-07-16 19:00:52 +00:00
parent 5d1df8e25c
commit 93c8aa8b71

View File

@ -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';