libdvbv5: add a missing return
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 1 Sep 2014 23:39:45 +0000 (20:39 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Mon, 1 Sep 2014 23:39:45 +0000 (20:39 -0300)
commitbfd0d3d31372f82529a082fdaa8771a4a6984843
treef1bafb08d1ba57ef06eef4abdc7050dc735cdaa8
parentc75faa3dcb091b9b79efbbc084dbfcef9e5a89dc
libdvbv5: add a missing return

Changeset 0097e30 fixed a Coverity bug that were causing a
memory leak in the case that the DVB dummy logic happens.
However, I forgot to add a return there, causing another
bug, also reported by Coverity:

*** CID 1233758:  Use after free  (USE_AFTER_FREE)
/lib/libdvbv5/descriptors.c: 81 in dvb_desc_default_print()
75     {
76      if (!parms) {
77      parms = dvb_fe_dummy();
78      dvb_hexdump(parms, "|           ", desc->data, desc->length);
79      free(parms);
80      }

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/libdvbv5/descriptors.c