diff options
author | Rob Bradford <rob@linux.intel.com> | 2013-07-26 16:29:36 +0100 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-07-30 11:03:19 -0700 |
commit | 12a2ff3482fcc144047b5c191085604e3c1f27fe (patch) | |
tree | 5d61e7977d721578ef14685af9c8e58a21df96f9 /wcap | |
parent | 45c15b83c00217f24f8e36d54fd3d841e144c5de (diff) |
wcap-decode: Close file descriptor when destroying the decoder
Diffstat (limited to 'wcap')
-rw-r--r-- | wcap/wcap-decode.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); } |