diff options
author | wm4 <wm4@nowhere> | 2016-02-12 15:49:44 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-12 15:51:49 +0100 |
commit | 337ad4fef400df103c8256152ca35512303fba66 (patch) | |
tree | 744b198cc0f3e94d66d5248d6e25ddc0f427123f /stream | |
parent | 8e4eee9a9adc0b40b0ad7f182808c77bf24f7c47 (diff) | |
download | mpv-337ad4fef400df103c8256152ca35512303fba66.tar.bz2 mpv-337ad4fef400df103c8256152ca35512303fba66.tar.xz |
stream_dvb: fix minor resource leaks
Fixes CID 1350062 and 1350061.
Just for the sake of shutting up Coverity.
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stream_dvb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c index d0e3cad8d8..43ca8ac2b9 100644 --- a/stream/stream_dvb.c +++ b/stream/stream_dvb.c @@ -1101,6 +1101,7 @@ dvb_state_t *dvb_get_state(stream_t *stream) if (tmp == NULL) { mp_err(log, "DVB_CONFIG, can't realloc %d bytes, skipping\n", size); + free(list); continue; } cards = tmp; @@ -1108,6 +1109,8 @@ dvb_state_t *dvb_get_state(stream_t *stream) name = malloc(20); if (name == NULL) { mp_err(log, "DVB_CONFIG, can't realloc 20 bytes, skipping\n"); + free(list); + free(tmp); continue; } |