[vlc-commits] alsa: fix invalid free

Rémi Denis-Courmont git at videolan.org
Tue Oct 27 20:32:03 CET 2015


vlc/vlc-2.2 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct 27 17:31:38 2015 +0200| [70546db24941bf28051e6ada69ad0419ae1c0cda] | committer: Rémi Denis-Courmont

alsa: fix invalid free

(cherry picked from commit 7b2088351a6074ee1f8574d606ff34e0e7d998fb)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=70546db24941bf28051e6ada69ad0419ae1c0cda
---

 modules/audio_output/alsa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/audio_output/alsa.c b/modules/audio_output/alsa.c
index 42c1d75..2d1f99e 100644
--- a/modules/audio_output/alsa.c
+++ b/modules/audio_output/alsa.c
@@ -742,7 +742,7 @@ static int EnumDevices(vlc_object_t *obj, char const *varname,
         ids = xrealloc (ids, (n + 1) * sizeof (*ids));
         names = xrealloc (names, (n + 1) * sizeof (*names));
         ids[n] = xstrdup ("default");
-        names[n] = _("Default");
+        names[n] = xstrdup (_("Default"));
         n++;
     }
 



More information about the vlc-commits mailing list