Commit Graph

44 Commits

Author SHA1 Message Date
Daniel Marjamäki ea1f3f4e85 Style: Updated the coding style with "astyle" 2009-01-05 15:49:57 +00:00
Reijo Tomperi 1594f453cc Refactoring: Changed order of parameters in Match() and findMatch() (deprecated parameter moved to last) 2009-01-03 21:05:47 +00:00
Reijo Tomperi 5d1d267624 Refactoring: Rename class "TOKEN" to "Token" 2009-01-03 20:29:20 +00:00
Daniel Marjamäki 2e23b09a05 Refactoring : Removed a short commented code that I never use anyway 2009-01-03 07:55:05 +00:00
Daniel Marjamäki 2b3a987552 Using freed memory : Fixed false positive when usage is something like: printf("free %x",p); 2009-01-03 07:47:35 +00:00
Daniel Marjamäki b756158644 Memory leak : Fixed a regression and added a test case 2009-01-03 07:40:09 +00:00
Reijo Tomperi f099796a10 Copyright 2007-2008 -> 2007-2009 2009-01-02 19:02:35 +00:00
Daniel Marjamäki 8ff5124233 Memory leak: Improved the checking of usage after free (if str is freed then "char c = str[0];" is illegal) 2009-01-02 08:00:12 +00:00
Nicolas Le Cam 2e439d8cea Memory leak : Completly fix false positive when using callbacks (Bug 2458510) 2009-01-02 00:05:08 +00:00
Reijo Tomperi 94923cca1a Refactoring: Prefer ++i; over i++; 2009-01-01 22:22:28 +00:00
Daniel Marjamäki ca550fb03e Memory leak : Changed the handling of "realloc" a little. The "getcode" will return "realloc" instead. And this will be converted to "dealloc;alloc;" before simplifycode 2009-01-01 18:42:32 +00:00
Daniel Marjamäki 35cdb6b0ba Memory leak : a little different handling when the callstack gets too big 2009-01-01 16:10:10 +00:00
Daniel Marjamäki b7b737c8f2 Memory leak : fixed false positive when there are recursive calls. (using memory after it has been freed) 2009-01-01 11:02:30 +00:00
Daniel Marjamäki 0b69a13205 Memory leak : Fixed false positives for "memory is used after it has been freed" 2009-01-01 10:14:52 +00:00
Daniel Marjamäki 784fc0d33e Memory leak : Fixed a bug in getcode (assignment) 2009-01-01 10:02:53 +00:00
Daniel Marjamäki 9a3696cb6f TOKEN: Renamed TOKEN::setstr to TOKEN::str 2009-01-01 09:37:07 +00:00
Daniel Marjamäki cf355c9e75 Memory leak : Fix to avoid false positives 2009-01-01 08:15:27 +00:00
Daniel Marjamäki dec4561ce3 memory leak: removed 'if(true)' and 'if(false)' as these are handled in the tokenizer instead 2008-12-31 17:32:18 +00:00
Daniel Marjamäki 085e97fd36 Memory leak : Added check "Using resource after it has been released" 2008-12-31 09:02:45 +00:00
Daniel Marjamäki 3947d8e797 Memory leak : Reverted 796 and 797. I didn't see definite improvements 2008-12-29 11:31:19 +00:00
Daniel Marjamäki 6a83e24c90 Memory leak : Removed checking of 'if(true)' and 'if(false)' as these are handled in the Tokenizer 2008-12-29 08:12:33 +00:00
Daniel Marjamäki 7e43f9f7f9 Memory leak : Optimising the 'CheckMemoryLeakClass::simplifycode' 2008-12-29 08:07:25 +00:00
Daniel Marjamäki c3954afdef Memory leak : Remove false positive for "if (cond1) str=strdup(); if (cond2) str=strdup();" 2008-12-28 21:24:51 +00:00
Daniel Marjamäki 6c8c4d7a63 memory leak : fixed false positive for "list << data" 2008-12-28 21:02:11 +00:00
Daniel Marjamäki 7f1b98d7ae Memory leak : Fixed false positive for "list += data" 2008-12-28 20:57:50 +00:00
Daniel Marjamäki 76239fcdf9 Memory leak : Fixed a problem with a fclose inside an if condition 2008-12-28 19:57:50 +00:00
Daniel Marjamäki a01ebc819f Memory leak: Added check "TestMemoryLeak::throw2" (no false positive upon throw) 2008-12-27 11:29:38 +00:00
Daniel Marjamäki 6ef11f3f49 Memory leaks : Fixed false positive for "p" when there is a line such as "p2 = p + 1;" 2008-12-26 20:12:42 +00:00
Daniel Marjamäki 492082f4f2 Memory leaks : Fixed false positive with return (Bug 2458436) 2008-12-25 08:27:07 +00:00
Daniel Marjamäki 20ae03d0d0 Memory leak : Fixed false positive when using callbacks (Bug 2458510) 2008-12-25 07:50:25 +00:00
Daniel Marjamäki 6472588ddd memory leaks : optimising 'simplifycode' 2008-12-24 07:36:18 +00:00
Daniel Marjamäki b8e0ea81a6 memory leaks : bug fix 2008-12-23 08:25:16 +00:00
Daniel Marjamäki a148e67168 Memory leaks : Reduce "if { dealloc ; return ; } if return ;" to "if return ;". Related with bug 2458532 2008-12-22 14:42:54 +00:00
Nicolas Le Cam 1f68dfa57e Refactoring: strdup also exists in MSVS 2008-12-21 17:45:05 +00:00
Nicolas Le Cam cbf9067de0 Minor optimizations and fixes 2008-12-21 11:43:05 +00:00
Daniel Marjamäki a0cee01d35 Memory leak : Updated the multipass checking a little 2008-12-20 21:52:40 +00:00
Daniel Marjamäki bf37a1153c memory leak : Added experimental functionality for multipass checking of memory leaks. Only added in the unit tests yet. 2008-12-20 17:52:15 +00:00
Reijo Tomperi e272630604 Copyright and app name changed in each file 2008-12-19 21:15:06 +00:00
Nicolas Le Cam a5fa323a0b Formatting: uniformize end of lines. 2008-12-18 21:28:57 +00:00
Daniel Marjamäki 8d6f77deed Memory leaks : Remove "if break|continue ;" that may otherwise cause false positives 2008-12-18 07:20:31 +00:00
Daniel Marjamäki ee5e20ed1f memory leak : fixed 2 bugs related to the testcases TestMemleak::if7 and TestMemleak::simple9 2008-12-17 19:21:39 +00:00
Daniel Marjamäki b145bf3650 Memory leak : Fixed issue 2429936 - false positive reported on the break in the code "loop { dealloc ; alloc ; if break ; }" 2008-12-16 19:01:15 +00:00
Daniel Marjamäki a8661baac5 Memory leak : Fixed bug described in issue 2432631. False positive on something like this.. "alloc ; if(!var) alloc;" 2008-12-16 17:06:59 +00:00
Reijo Tomperi 06b8cc48e8 Refactoring and fix to previous commits by me, forgot to actually rename the files before ... 2008-12-14 22:36:34 +00:00