forked from enlightenment/enlightenment
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
This commit is contained in:
parent
da4d1ecfe8
commit
d96517fce3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue