source: CIVL/examples/languageFeatures/memLeak.cvl@ a0b7ab5

1.23 2.0 main test-branch
Last change on this file since a0b7ab5 was a47a06a, checked in by Manchun Zheng <zmanchun@…>, 11 years ago

added an example for memory leak problem.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@2194 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 90 bytes
Line 
1#include <civlc.cvh>
2
3int main(){
4 int *a = (int*)$malloc(sizeof(int)*8);
5
6 a[0] = 8;
7}
Note: See TracBrowser for help on using the repository browser.