From c6d0f122c90cd7cf0b7a4f2afa77f4559ba77c62 Mon Sep 17 00:00:00 2001 From: Justin Joy Date: Tue, 14 Jan 2014 19:08:49 +0900 Subject: [PATCH] osshelper: Don't leak fd when getting card name https://bugzilla.gnome.org/show_bug.cgi?id=722163 --- sys/oss/gstosshelper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/oss/gstosshelper.c b/sys/oss/gstosshelper.c index 11e3ff6df8..9fc2701323 100644 --- a/sys/oss/gstosshelper.c +++ b/sys/oss/gstosshelper.c @@ -411,6 +411,7 @@ gst_oss_helper_get_card_name (const gchar * mixer_name) GST_INFO ("Unknown card name"); } + close (fd); return name; /* ERRORS */