Skip to content

Commit 5578f99

Browse files
committed
Include a call to free in the sandbox library
1 parent ba8a24e commit 5578f99

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

code/tests/rlbox_glue/lib/libtest.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,7 @@ int isNonNullChar(unsigned char p)
242242
return 0;
243243
}
244244
}
245+
246+
void callFree(void* p) {
247+
free(p);
248+
}

code/tests/rlbox_glue/lib/libtest.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ extern "C"
8585
unsigned int a3, unsigned int a4, unsigned int a5, unsigned int a6,
8686
unsigned int a7, unsigned int a8, unsigned int a9, unsigned int a10, unsigned int a11);
8787
int isNonNullChar(unsigned char p);
88+
void callFree(void* p);
8889
#ifdef __cplusplus
8990
}
9091
#endif

0 commit comments

Comments
 (0)