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

Submitter:  Michael <mdunphy>
Submitted:  Sat 19 Jul 2014 06:59:21 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  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>
Group administrator
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>

 

(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 gvol (Posted a comment)
  • -email is unavailable- added by mdunphy (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-07-30 gvol StatusNone Fixed
        Assigned toNone gvol
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code