From 12a2ff3482fcc144047b5c191085604e3c1f27fe Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 26 Jul 2013 16:29:36 +0100 Subject: [PATCH] wcap-decode: Close file descriptor when destroying the decoder --- wcap/wcap-decode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/wcap/wcap-decode.c b/wcap/wcap-decode.c index f7cabe3e..2b9304dd 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); }