summaryrefslogtreecommitdiffstats
path: root/src/vector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vector.c')
-rw-r--r--src/vector.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vector.c b/src/vector.c
index 10294a7..ef59f8f 100644
--- a/src/vector.c
+++ b/src/vector.c
@@ -53,7 +53,7 @@ void vector_free(vector_t *v)
{
v->count = 0;
v->size = 0;
- free(v->data);
+ mem_free(v->data);
v->data = NULL;
}
@@ -100,7 +100,7 @@ void vector_add(vector_t *v, void *data)
{
if (v->count >= v->size) {
v->size *= 2;
- v->data = realloc(v->data, v->size * sizeof(void *));
+ v->data = mem_realloc(v->data, v->size, sizeof(void *));
}
v->data[v->count] = data;