From e9d4d3c505114114366cc0102ee92ce2e0d779dc Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Fri, 18 Jul 2014 08:47:23 +0200 Subject: 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 --- src/vector.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vector.c') diff --git a/src/vector.c b/src/vector.c index c1bab96..4e9713f 100644 --- a/src/vector.c +++ b/src/vector.c @@ -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 *)); } /* -- cgit v1.2.3