mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
Some allocator changes (still doesn't work)
This commit is contained in:
parent
baaa6407d5
commit
28a6d943d9
1 changed files with 2 additions and 0 deletions
2
mem.c
2
mem.c
|
@ -317,5 +317,7 @@ void mem_free(void *ptr) {
|
|||
int main() {
|
||||
mem_init(1330);
|
||||
char *p = mem_alloc(sizeof(char) * 5);
|
||||
mem_free(p);
|
||||
mem_destroy();
|
||||
/* blows up on second alloc, why? char *x = mem_alloc(200); */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue