acpi: acpi.c: memory leak

Bug #480669 reported by dcb
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
acpi (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: acpi

For source code file acpi-1.4/acpi.c, function get_info,
line 165 is the source code

    char *filename = malloc(strlen(device_name) + strlen("/energy_full_design "));

but I fail to find a matching call to free. This looks like a memory leak
to me. Suggest add call to free near the end of the routine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.