bugGNU Astronomy Utilities - Bugs: bug #51118, Possible memory leak in mkcatalog.c

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #51118: Possible memory leak in mkcatalog.c

Submitter:  Vladimir Markelov <vvm>
Submitted:  Fri 26 May 2017 04:01:52 AM UTC
   
 
Category:  MakeCatalog Severity:  2 - Minor
Item Group:  Source code Status:  Fixed
Privacy:  Public Assigned to:  vvm
Open/Closed:  Closed

Fri 26 May 2017 01:10:36 PM UTC, comment #1: 

Thank you so much Vladimir for noticing this memory leak and correcting it.

It has been merged to master and is pushed to the main repo.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Fri 26 May 2017 04:01:52 AM UTC, original submission:  

mkcatalog.c line 751
memory is allocated for temporary variable but never freed:

if(p->sfmagarea==1.0f) tstr=NULL;
else                   asprintf(&tstr, "%g-", p->sfmagarea);


Please see the patch:
https://github.com/VladimirMarkelov/gnuastro-vvm/commit/7243f46434b4fc52352b0104f337bbe7bdc6f772

Vladimir Markelov <vvm>

 

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

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 makhlaghi (Posted a comment)
  • -email is unavailable- added by vvm (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.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-05-26 makhlaghi Open/ClosedOpen Closed
    2017-05-26 vvm StatusIn Progress Fixed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code