[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Freeipmi-devel] [bug #14993] libfreeipmi sensor event messages mem-leak
From: |
Anand Babu |
Subject: |
[Freeipmi-devel] [bug #14993] libfreeipmi sensor event messages mem-leaks (ipmi-sensor-event-messages.c) |
Date: |
Fri, 16 Dec 2005 17:58:00 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051128 Debian/1.4.99+1.5rc3.dfsg-2 Firefox/1.5 |
Update of bug #14993 (project freeipmi):
Status: None => Fixed
Assigned to: None => balamurugan
Open/Closed: Open => Closed
_______________________________________________________
Follow-up Comment #1:
All the internal functions which strdup in ipmi-sensor-event-messages.c are
declared static now. 2 high level APIs around them compose the allocated
dynamic strings into a list of strings (char **) and return them. User (fish:
scm-procedures.c) is already freeing them properly in scm-procedures.c.
So there are no known memory leaks in that file.
Bala and me had a lengthy discussion on approaches other than strdup, like
static string arrays, user-allocated buffers ..
But came to conclusion that the current approach is good.
--
Anand Babu
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14993>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/