[PATCH] fix a memory leak

Yunlian Jiang yunlian at chromium.org
Fri Jul 31 09:40:08 PDT 2015


The bug entry is at
https://code.google.com/p/chromium/issues/detail?id=515929

The patch is below

---
 src/mm-base-manager.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mm-base-manager.c b/src/mm-base-manager.c
index fdcd037..de3291c 100644
--- a/src/mm-base-manager.c
+++ b/src/mm-base-manager.c
@@ -752,6 +752,7 @@ handle_set_profile (MmGdbusTest *skeleton,
     g_hash_table_insert (self->priv->devices,
                          g_strdup (physdev),
                          device);
+    g_free(physdev);

     /* Grab virtual ports */
     mm_device_virtual_grab_ports (device, (const gchar **)ports);
--
2.5.0.rc2.392.g76e840b
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20150731/cec5aca6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-memory-leak.patch
Type: text/x-patch
Size: 552 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/modemmanager-devel/attachments/20150731/cec5aca6/attachment.bin>


More information about the ModemManager-devel mailing list