Potential memory leak in StringArray
| Bugzilla Link | 616 |
| Created on | Dec 11, 2009 00:07 |
| Version | svn |
| OS | All |
| Architecture | PC |
| Attachments | testStringArray3.sac |
Extended Description
Created an attachment (id=619) testcase (SaC source) The attached test case when run with sac2c -check ctb testStringArray3.sac && a.out triggers a segfault in the first call to free in modules/structures/src/StringArray/sel.c. Carl and I fixed this for now by commenting out this line but don't know how this works. We may have even inadvertently created a memory leak. To reproduce the problem first uncomment the call to SAC_ND_DEC_RC_FREE and run the test case as described above.