Index: src/storedPlaylist.c =================================================================== --- src/storedPlaylist.c (revision 7110) +++ src/storedPlaylist.c (working copy) @@ -472,15 +472,23 @@ char *to; int ret = 0; - from = xstrdup(utf8pathToFsPathInStoredPlaylist(utf8from, fd)); + from = utf8pathToFsPathInStoredPlaylist(utf8from, fd); if (!from) return -1; + from = xstrdup(from); + if (!from) + return -1; - to = xstrdup(utf8pathToFsPathInStoredPlaylist(utf8to, fd)); + to = utf8pathToFsPathInStoredPlaylist(utf8to, fd); if (!to) { free(from); return -1; } + to = xstrdup(to); + if (!to) { + free(from); + return -1; + } if (stat(from, &st) != 0) { commandError(fd, ACK_ERROR_NO_EXIST,