From: Ilkka Ollakka Date: Tue, 8 Jun 2010 05:37:50 +0000 (+0300) Subject: pulse: no need to check null in free X-Git-Tag: 1.2.0-pre1~6273 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=5e969105d58499aed4dbf59c0bb45ded5cdbb072;p=vlc pulse: no need to check null in free --- diff --git a/modules/audio_output/pulse.c b/modules/audio_output/pulse.c index 0a6b2e0456..c02ffa0958 100644 --- a/modules/audio_output/pulse.c +++ b/modules/audio_output/pulse.c @@ -307,8 +307,7 @@ unlock_and_fail: if (p_sys->mainloop) pa_threaded_mainloop_unlock(p_sys->mainloop); fail: - if (p_client_name) - free(p_client_name); + free(p_client_name); msg_Dbg(p_aout, "Pulse initialization failed"); uninit(p_aout); return VLC_EGENERIC;