[gnome-panel] fish: fix memory leak
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] fish: fix memory leak
- Date: Sat, 7 Mar 2020 19:28:39 +0000 (UTC)
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]