Opened 12 years ago

Closed 12 years ago

#4721 closed defect (fixed)

remap should release map if erroring out

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

Description

The dynamically allocated map should be freed when remap runs into a problem and returns null.

Attachments (1)

fix-mem-leak-in-remap.patch (635 bytes) - added by Erik Hovland <erik@…> 12 years ago.
frees map memory if failing out

Download all attachments as: .zip

Change History (4)

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

Attachment: fix-mem-leak-in-remap.patch added

frees map memory if failing out

comment:1 Changed 12 years ago by Anduin Withers

Owner: changed from Isaac Richards to Anduin Withers
Status: newassigned

comment:2 Changed 12 years ago by Anduin Withers

(In [16172]) References #4721

free() up what is allocated in remap_new() in the error exit path.

Thanks to Erik Hovland for the patch.

comment:3 Changed 12 years ago by Anduin Withers

Resolution: fixed
Status: assignedclosed

(In [16200]) Closes #4721

Merges [16172] from trunk.

Original commit message:

free() up what is allocated in remap_new() in the error exit path.

Thanks to Erik Hovland for the patch.

Note: See TracTickets for help on using tickets.