bugGNU FreeIPMI - Bugs: bug #14993, libfreeipmi sensor event messages...

 
 

bug #14993: libfreeipmi sensor event messages mem-leaks (ipmi-sensor-event-messages.c)

Submitter:  Albert Chu <chu11>
Submitted:  Wed 16 Nov 2005 10:20:30 PM UTC
   
 
Category:  libfreeipmi Severity:  4 - Important
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  balamurugan Open/Closed:  Closed
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 17 Dec 2005 01:58:00 AM UTC, 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


Anand Babu Periasamy <ab>
Group administrator
Wed 16 Nov 2005 10:20:30 PM UTC, original submission:  

I've already discussed with AB and Bala about this bug.  This is a place holder so it isn't forgotten before the 0.2.0 release.

Albert Chu <chu11>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 5 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-12-17 ab StatusNone Fixed
    Assigned toNone balamurugan
    Open/ClosedOpen Closed
2005-11-16 chu11 Severity3 - Normal 4 - Important
2005-11-16 chu11 Summarysensor event messages mem-leak libfreeipmi sensor event messages mem-leaks (ipmi-sensor-event-messages.c)

Back to the top

Powered by Savane 3.13-02a9.
Corresponding source code