Opened 11 years ago

Closed 11 years ago

#4663 closed defect (fixed)

make sure file handle is closed when done with it

Reported by: Erik Hovland <erik@…> Owned by: Isaac Richards
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

In libmythdvdnav, in remap.c, in the function remap_loadmap the map file is loaded. When the function is done it does not close the map file. Which means that the file handle for the map file just hangs around (and is eventually leaked as a resource).

Attachments (1)

fix-possible-file-handle-leak-in-dvdnav-remap.patch (605 bytes) - added by Erik Hovland <erik@…> 11 years ago.

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by Erik Hovland <erik@…>

comment:1 Changed 11 years ago by paulh

(In [16158]) Make sure remap_loadmap() in libmythdvdnav closes the file it opens before exiting.

Patch by Erik Hovland. Refs #4663.

comment:2 Changed 11 years ago by paulh

Resolution: fixed
Status: newclosed

(In [16159]) Make sure remap_loadmap() in libmythdvdnav closes the file it opens before exiting.

Patch by Erik Hovland. Fixes #4663.

Note: See TracTickets for help on using tickets.