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:
Conrad Meyer 2015-04-09 10:36:38 +01:00 committed by Tom Hacohen
parent da4d1ecfe8
commit d96517fce3
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}