[Pidgin] #16128: Possible memory leak in gtkwebview.c/webview_resource_loading

Pidgin trac at pidgin.im
Mon Mar 10 16:38:32 EDT 2014


#16128: Possible memory leak in gtkwebview.c/webview_resource_loading
--------------------------------+--------------------------
 Reporter:  AnonymousSubmitter  |      Owner:
     Type:  patch               |     Status:  new
Milestone:                      |  Component:  pidgin (gtk)
  Version:  2.10.9              |   Keywords:  leak memory
--------------------------------+--------------------------
 Hi,


 {{{
 static void
 webview_resource_loading(WebKitWebView *webview,
                          WebKitWebFrame *frame,
                          WebKitWebResource *resource,
                          WebKitNetworkRequest *request,
                          WebKitNetworkResponse *response,
                          gpointer user_data)

 (...)

                 p_uri = g_strdup(uri);
                 found = strchr(p_uri, '/');
                 if (!found) {
                         purple_debug_warning("webview", "Invalid purple
 stock "
                                 "image uri: %s", uri);
                         return;
                 }
 }}}

 p_uri is allocated but never freed if "found" variable is false.

-- 
Ticket URL: <https://developer.pidgin.im/ticket/16128>
Pidgin <https://pidgin.im>
Pidgin


More information about the Tracker mailing list