]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
hdhomerun: coverity - fix double free
authorJaroslav Kysela <perex@perex.cz>
Mon, 23 May 2016 19:29:21 +0000 (21:29 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 23 May 2016 19:29:21 +0000 (21:29 +0200)
src/input/mpegts/tvhdhomerun/tvhdhomerun.c

index aae8f56a78e71d7d3cb870f141d6185b9ddd1ac0..690bded993bd71bd3289b29e0343d1f6d237cf54 100644 (file)
@@ -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);