Do not use malloc() or xmalloc()

Use mem_malloc() instead which automatically picks the right
implementation depending on whether memory debugging is enabled or not.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2014-07-18 08:47:23 +02:00
parent 58f6ac62aa
commit e9d4d3c505
3 changed files with 7 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ void vector_init(vector_t *v, unsigned size)
{
v->count = 0;
v->size = size;
v->data = malloc(size * sizeof(void *));
v->data = mem_malloc(size * sizeof(void *));
}
/*