Commit 4920ee71 authored by Warren Dukes's avatar Warren Dukes

plug a potential memory leak

git-svn-id: https://svn.musicpd.org/mpd/trunk@713 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 20be66a9
......@@ -55,7 +55,10 @@ char * fsCharsetToUtf8(char * str) {
ret = pathConvCharset("UTF-8",fsCharset,str,ret);
if(ret && !validUtf8String(ret)) ret = NULL;
if(ret && !validUtf8String(ret)) {
free(ret);
ret = NULL;
}
/*if(!ret) ret = asciiStrToUtf8Dup(str);*/
/* if all else fails, just strdup */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment