[gnome-multi-writer] trivial: Fix a tiny memory leak when probing



commit 521b9f4d34ed9ae3a89843115ad04f04497d4906
Author: Richard Hughes <richard hughsie com>
Date:   Fri Jul 15 13:05:37 2016 +0100

    trivial: Fix a tiny memory leak when probing

 src/gmw-probe.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gmw-probe.c b/src/gmw-probe.c
index 9f762b6..c7edda0 100644
--- a/src/gmw-probe.c
+++ b/src/gmw-probe.c
@@ -152,6 +152,8 @@ gmw_probe_device_free (GmwProbeDevice *dev)
 {
        if (dev->fd > 0)
                close (dev->fd);
+       if (dev->udev_device != NULL)
+               g_object_unref (dev->udev_device);
        g_free (dev->block_dev);
        g_ptr_array_unref (dev->data_save);
        g_free (dev);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]