[rfc][icedtea-web] Fix two memory leaks

Adam Domurad adomurad at redhat.com
Mon Nov 19 09:34:05 PST 2012

get_cookie_info and get_proxy_info take a char** that holds a result 
from an NPN_GetValueForURLPtr browser callback.

This string is not freed, however the documentation [1] states the 
plugin is responsible for freeing the buffer.

2012-11-19  Adam Domurad  <adomurad at redhat.com>

     * plugin/icedteanp/IcedTeaNPPlugin.cc
     (consume_plugin_message): Free two buffers returned from 
NPN_GetValueForURL function.

[1]  https://developer.mozilla.org/en-US/docs/NPN_GetValueForURL
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memleakfix.patch
Type: text/x-patch
Size: 1809 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20121119/8c6c61ed/memleakfix.patch 

More information about the distro-pkg-dev mailing list