[mythtv-commits] Ticket #4670: If buffer alloc fails, dvd file should be closed

MythTV mythtv at cvs.mythtv.org
Thu Feb 14 19:23:06 UTC 2008


#4670: If buffer alloc fails, dvd file should be closed
---------------------------------------------+------------------------------
 Reporter:  Erik Hovland <erik at hovland.org>  |       Owner:  ijr 
     Type:  patch                            |      Status:  new 
 Priority:  minor                            |   Milestone:  0.21
Component:  mythtv                           |     Version:  head
 Severity:  low                              |     Mlocked:  0   
---------------------------------------------+------------------------------
 In the function DVDDiscID, in the file dvd_reader.c, in libmythdvdnav the
 function allocates a buffer to store some disc id information. If that
 allocation fails the function returns but the dvd file is still open.
 Which means that both the dvd file struct and the file handle associated
 to that dvd file are leaked.

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/4670>
MythTV <http://svn.mythtv.org/trac>
MythTV


More information about the mythtv-commits mailing list