bugLaTeX semantic checker - Bugs: bug #42813, Memory leak in chktek

 
 

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

bug #42813: Memory leak in chktek

Submitted by:  Michael <mdunphy>
Submitted on:  Sat 19 Jul 2014 06:59:21 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Ivan Andrus <gvol>
Open/Closed: Closed

Wed 30 Jul 2014 05:42:28 AM UTC, comment #1:

I think I have fixed all the memory leaks, except for one in ReadRC. I'm not sure how to fix that one without contorting the code, and it shouldn't leak much.

If you find any others please provide me with a chktexrc file (if different than the default) and a small tex file which reproduces the problem.

Thanks.

Ivan Andrus <gvol>
Project AdministratorIn charge of this item.
Sat 19 Jul 2014 06:59:21 PM UTC, original submission:

Valgrind finds a memory leak associated with using the MakeCpy function. It's present in the version from svn trunk.

==30867== 19 bytes in 1 blocks are definitely lost in loss record 6 of 15
==30867== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30867== by 0x4EBAD81: strdup (strdup.c:43)
==30867== by 0x4035B2: MakeCpy (FindErrs.c:298)
==30867== by 0x404803: PerformBigCmd (FindErrs.c:670)
==30867== by 0x406E72: FindErr (FindErrs.c:1610)
==30867== by 0x401BCB: main (ChkTeX.c:494)
==30867==
==30867== 2,626 bytes in 55 blocks are definitely lost in loss record 13 of 15
==30867== at 0x4C2B6CD: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30867== by 0x4EBAD81: strdup (strdup.c:43)
==30867== by 0x4035B2: MakeCpy (FindErrs.c:298)
==30867== by 0x4056F8: HandleBracket (FindErrs.c:1131)
==30867== by 0x40718E: FindErr (FindErrs.c:1646)
==30867== by 0x401BCB: main (ChkTeX.c:494)

Michael <mdunphy>

 

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 gvol (Posted a comment)
  • -unavailable- added by mdunphy (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
    Wed 30 Jul 2014 05:42:28 AM UTCgvolStatusNone=>Fixed
      Assigned toNone=>gvol
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1