0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 03:52:22 +02:00

stream_dvb: fix minor resource leaks

Fixes CID 1350062 and 1350061.

Just for the sake of shutting up Coverity.
This commit is contained in:
wm4 2016-02-12 15:49:44 +01:00
parent 8e4eee9a9a
commit 337ad4fef4

View File

@ -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;
}