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:
parent
5d1df8e25c
commit
93c8aa8b71
@ -1486,6 +1486,7 @@ static int PlaylistIterFunc(FILE * fp, char * utf8file, void (*IterFunc)(FILE *f
|
|||||||
strcpy(s, temp);
|
strcpy(s, temp);
|
||||||
IterFunc(fp, s, &erroredFile);
|
IterFunc(fp, s, &erroredFile);
|
||||||
}
|
}
|
||||||
|
free(temp);
|
||||||
}
|
}
|
||||||
else if(slength==MAXPATHLEN) {
|
else if(slength==MAXPATHLEN) {
|
||||||
s[slength] = '\0';
|
s[slength] = '\0';
|
||||||
|
Loading…
Reference in New Issue
Block a user