libdvbv5/dvb-file: fix allocation of dvb_file
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Sun, 17 Nov 2013 21:31:55 +0000 (19:31 -0200)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Wed, 27 Nov 2013 11:24:40 +0000 (09:24 -0200)
commit6b1d24d1efe5d1ea46104e45d35a4e5298e6b850
treeaf80fe673f76e9315c60d93453e18fc024b26ffc
parentc8352b40b2653157f7a1bdbd3657f6cf0791fb16
libdvbv5/dvb-file: fix allocation of dvb_file

Correct a few allocation issues reported by Valgrind:

- Size of dvb_file is wrong;
- getline requires a free after end using it;
- entries should be freed at dvb_file_free().

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