mainGNU gettext - Support: sr #109145, Memory Leak

 
 

sr #109145: Memory Leak

Submitter:  Fernando <oberynmartell>
Submitted:  Mon 19 Sep 2016 01:54:21 AM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  3 - Normal Status:  Not a Bug
Privacy:  Public Assigned to:  haible
Open/Closed:  Closed Operating System:  Microsoft Windows
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 11 Sep 2018 12:14:40 AM UTC, comment #1: 

Yes, the bindtextdomain and textdomain functions allocate memory that does not get freed. But this occurs only once, at the start of the program, and is therefore not a problem. You can ignore these two findings.

Bruno Haible <haible>
Group administrator
Mon 19 Sep 2016 01:54:21 AM UTC, original submission:  

I'm running a memory leak detector on my software, and it is detecting some memory leaks on the bindtextdomain and the textdomain functions.
I could not find anywhere if any kind of freeing of memory is needed for gettext.
The call stack for both are:

ucrtbased.dll!malloc()
demon.exe!set_binding_values() + 0x12 bytes
demon.exe!libintl_bindtextdomain()

ucrtbased.dll!strdup()
demon.exe!libintl_textdomain() + 0xB bytes
demon.exe!textdomain()

Is it normal?

Thanks in advance!

Fernando <oberynmartell>

 

(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

 

Carbon-Copy List
  • -email is unavailable- added by haible (Posted a comment)
  • -email is unavailable- added by oberynmartell (Submitted the item)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-11 haible StatusNone Not a Bug
        Assigned toNone haible
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code