[MPlayer-dev-eng] PATCH: processing "file:///" URL

Ismail Donmez ismail at kde.org.tr
Thu Apr 14 19:39:40 CEST 2005


On Thursday 14 April 2005 19:45, Eugene Crosser wrote:
> +       if (strcmp(url->protocol, "file")==0){
> +               char *unescfilename = strdup(url->file);
> +               url_unescape_string(unescfilename,url->file);
> +               return open_stream_full(unescfilename,STREAM_READ,
> +                                               options,file_format);
> +       }

You don't free unescfilename anywhere so this code leaks.

ismail


More information about the MPlayer-dev-eng mailing list