osshelper: Don't leak fd when getting card name

https://bugzilla.gnome.org/show_bug.cgi?id=722163
This commit is contained in:
Justin Joy 2014-01-14 19:08:49 +09:00 committed by Sebastian Dröge
parent 2ad1f20e7b
commit c6d0f122c9

View file

@ -411,6 +411,7 @@ gst_oss_helper_get_card_name (const gchar * mixer_name)
GST_INFO ("Unknown card name");
}
close (fd);
return name;
/* ERRORS */