[Xfce4-commits] [apps/xfce4-screensaver] 01/02: Fix CID 213284: Resource leak

noreply at xfce.org noreply at xfce.org
Fri Jun 7 04:46:12 CEST 2019


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit d1c07926f53c48e402e2f5596eb88ce02ccd2b22
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Thu Jun 6 22:45:25 2019 -0400

    Fix CID 213284: Resource leak
---
 src/xfce4-screensaver-command.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/xfce4-screensaver-command.c b/src/xfce4-screensaver-command.c
index 919f851..1557104 100644
--- a/src/xfce4-screensaver-command.c
+++ b/src/xfce4-screensaver-command.c
@@ -296,6 +296,9 @@ get_string_from_iter (DBusMessageIter *iter,
     return buffer;
 
 oom:
+    if (buffer != NULL) {
+        free (buffer);
+    }
     g_debug ("%s %d : error allocating memory\n", __FILE__, __LINE__);
     return NULL;
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list