tasn pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=d96517fce38e1570056fafdf1b3335c1ac85f7c6

commit d96517fce38e1570056fafdf1b3335c1ac85f7c6
Author: Conrad Meyer <cse....@gmail.com>
Date:   Thu Apr 9 10:36:38 2015 +0100

    Mixer Pulse: Fix trivial use-after-free.
    
    Summary: Don't use memory after freeing it.
    
    Fixes T2274
    
    @fix
    
    Reviewers: raster, zmike
    
    Subscribers: abyomi0, zmike
    
    Projects: #enlightenment-git
    
    Maniphest Tasks: T2274
    
    Differential Revision: https://phab.enlightenment.org/D2301
    
    Commit message updates by: Tom Hacohen
---
 src/modules/mixer/pa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/mixer/pa.c b/src/modules/mixer/pa.c
index bc6edd5..03ec610 100644
--- a/src/modules/mixer/pa.c
+++ b/src/modules/mixer/pa.c
@@ -741,8 +741,8 @@ pulse_new(void)
                        buf = eina_stringshare_add(STATEDIR 
"/run/pulse/native");
                        if (stat(buf, &st))
                          {
-                            eina_stringshare_del(buf);
                             INF("could not locate local socket '%s'!", buf);
+                            eina_stringshare_del(buf);
                             free(conn);
                             return NULL;
                          }

-- 


Reply via email to