more memory allocation fixes.

This commit is contained in:
Vítor Santos Costa II
2010-04-15 22:49:25 +01:00
parent c4b12d5cbe
commit 052c20a29b
4 changed files with 24 additions and 34 deletions

View File

@@ -170,7 +170,12 @@ Yap_ReleaseCMem (struct intermediates *cip)
p = nextp;
}
cip->blks = NULL;
if (cip->label_offset &&
cip->label_offset != Yap_LabelFirstArray) {
Yap_FreeCodeSpace((ADDR)cip->label_offset);
}
#endif
cip->label_offset = NULL;
}
char *