[PATCH weston 02/11] wcap-decode: Close file descriptor when destroying the decoder

Rob Bradford robert.bradford at intel.com
Fri Jul 26 08:29:36 PDT 2013


From: Rob Bradford <rob at linux.intel.com>

---
 wcap/wcap-decode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/wcap/wcap-decode.c b/wcap/wcap-decode.c
index f7cabe3..2b9304d 100644
--- a/wcap/wcap-decode.c
+++ b/wcap/wcap-decode.c
@@ -144,6 +144,7 @@ void
 wcap_decoder_destroy(struct wcap_decoder *decoder)
 {
 	munmap(decoder->map, decoder->size);
+	close(decoder->fd);
 	free(decoder->frame);
 	free(decoder);
 }
-- 
1.8.3.1



More information about the wayland-devel mailing list