GNOME Bugzilla – Bug 737870
There is a memory leak in gssdp-client/socket_source_cb
Last modified: 2019-02-22 09:29:26 UTC
Created attachment 287702 [details] [review] Patch fixing the mem leak Each message received by g_socket_receive_message is leaked. According to the gio documentation: messages , if non-NULL, will be set to point to a newly-allocated array of GSocketControlMessage instances or NULL if no such messages was received. These correspond to the control messages received from the kernel, one GSocketControlMessage per message from the kernel. This array is NULL-terminated and must be freed by the caller using g_free() after calling g_object_unref() on each element. If messages is NULL, any control messages received will be discarded. The attached patch derefs and frees as documented.
Review of attachment 287702 [details] [review]: Whoops. Thanks.