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

 
 

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

Submitted by:  Albert Chu <chu11>
Submitted on:  Wed 16 Nov 2005 10:20:30 PM UTC  
 
Category: libfreeipmiSeverity: 4 - Important
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: Balamurugan <balamurugan>Open/Closed: Closed
Operating System: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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 <ab>
Project 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>
Project Administrator

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 17 Dec 2005 01:58:00 AM UTCabStatusNone=>Fixed
  Assigned toNone=>balamurugan
  Open/ClosedOpen=>Closed
Wed 16 Nov 2005 10:23:16 PM UTCchu11Severity3 - Normal=>4 - Important
Wed 16 Nov 2005 10:21:29 PM UTCchu11Summarysensor event messages mem-leak=>libfreeipmi sensor event messages mem-leaks (ipmi-sensor-event-messages.c)

Back to the top


Powered by Savane 3.1-cleanup1