From: Jaroslav Kysela Date: Mon, 23 May 2016 19:29:21 +0000 (+0200) Subject: hdhomerun: coverity - fix double free X-Git-Tag: v4.2.1~480 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bdc29e4999310560a9c5315d7631b9c4b455d36f;p=thirdparty%2Ftvheadend.git hdhomerun: coverity - fix double free --- 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);