From bdc29e4999310560a9c5315d7631b9c4b455d36f Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 23 May 2016 21:29:21 +0200 Subject: [PATCH] hdhomerun: coverity - fix double free --- src/input/mpegts/tvhdhomerun/tvhdhomerun.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/input/mpegts/tvhdhomerun/tvhdhomerun.c b/src/input/mpegts/tvhdhomerun/tvhdhomerun.c index aae8f56a7..690bded99 100644 --- a/src/input/mpegts/tvhdhomerun/tvhdhomerun.c +++ b/src/input/mpegts/tvhdhomerun/tvhdhomerun.c @@ -313,10 +313,8 @@ static void tvhdhomerun_device_create(struct hdhomerun_discover_device_t *dInfo) hd->hd_pids_deladd = 1; if (!tvh_hardware_create0((tvh_hardware_t*)hd, &tvhdhomerun_device_class, - uuid.hex, conf)) { - free(hd); + uuid.hex, conf)) return; - } TAILQ_INIT(&hd->hd_frontends); -- 2.47.3