[gnome-panel] fish: fix memory leak



commit 4673e6e0e59296892857597a1084e7e58ee599a0
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Sat Mar 7 20:16:30 2020 +0200

    fish: fix memory leak
    
    CID 1445704.

 modules/fish/fish-applet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/modules/fish/fish-applet.c b/modules/fish/fish-applet.c
index 104e53944..101de484c 100644
--- a/modules/fish/fish-applet.c
+++ b/modules/fish/fish-applet.c
@@ -785,8 +785,8 @@ get_location (void)
                        count++;
 
        if (count != 2) {
-               return NULL;
                g_free (buffer);
+               return NULL;
        }
 
        memcpy (location, &buffer [i + 2], len - i - 2);


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