always align hl_malloc pointers (close
@@ -934,6 +934,7 @@ void *hl_malloc( hl_alloc *a, int size ) {
hl_alloc_block *b = a->cur;
void *p;
if( !size ) return NULL;
+ size += hl_pad_size(size,&hlt_dyn);
if( b == NULL || b->size <= size ) {
int alloc = size < 4096-sizeof(hl_alloc_block) ? 4096-sizeof(hl_alloc_block) : size;
b = (hl_alloc_block *)malloc(sizeof(hl_alloc_block) + alloc);
