URL: <https://savannah.gnu.org/bugs/?67962>
Summary: Memory leakage in ipmi-locate-acpi-spmi.c
Group: GNU FreeIPMI
Submitter: fang
Submitted: Mon 26 Jan 2026 10:13:57 AM UTC
Category: ipmi-locate
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Unlocked
Operating System: GNU/Linux
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Mon 26 Jan 2026 10:13:57 AM UTC By: Eric Fang <fang>
Dear administrators:
We found a memory problem in
freeipmi-1-6-16/libfreeipmi/locate/ipmi-locate-acpi-spmi.c, line 1188, while
we were developing via this library.
In this line: 'if (!(sysfs_path = malloc (sysfs_path_length)))', the memory
allocated to variable 'sysfs_path' has never been released(free), so when we
wanted to run the main function as a interface function, the memory usage was
continually increasing.
Our solution is add 'free(sysfs_path);' after line 1235, where the tag
'cleanup:' at. We have simply tested and we think this can solve the question
above.
Please fix this bug if it is exist.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?67962>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
