bugGNU nano - Bugs: bug #47206, memory leak in file browser

 
 

bug #47206: memory leak in file browser

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sat 20 Feb 2016 02:50:37 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 25 Feb 2016 02:18:47 PM UTC, comment #1:

Fixed in SVN, r5676, and in a better way in r5677.

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 20 Feb 2016 02:50:37 PM UTC, original submission:

To reproduce, run 'src/nano', and type: ^R ^T <Enter> ^C ^C ^X.

==5034== 32 bytes in 1 blocks are definitely lost in loss record 288 of 344
==5034== at 0x4025016: realloc (vg_replace_malloc.c:525)
==5034== by 0x806102F: nrealloc (utils.c:400)
==5034== by 0x8061077: null_at (utils.c:128)
==5034== by 0x804AB47: striponedir (browser.c:874)
==5034== by 0x804BBAD: do_browser (browser.c:325)
==5034== by 0x804BDC4: do_browse_from (browser.c:412)
==5034== by 0x8051844: do_insertfile (files.c:1194)
==5034== by 0x8051B02: do_insertfile_void (files.c:1384)
==5034== by 0x8057BDD: do_input (nano.c:1722)
==5034== by 0x8058731: main (nano.c:2681)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

(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

 

Carbon-Copy List
  • -unavailable- added by bens (Submitted the item)
  •  

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

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 27 Feb 2016 03:09:16 PM UTCbensOpen/ClosedOpen=>Closed
    Thu 25 Feb 2016 02:18:47 PM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens

    Back to the top


    Powered by Savane 3.1-cleanup1