summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/hashmap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/hashmap.c b/utils/hashmap.c
index 814dc55b5..9cdc5a23a 100644
--- a/utils/hashmap.c
+++ b/utils/hashmap.c
@@ -67,6 +67,9 @@ hashmap_t *
hashmap_create(hashmap_parameters_t *params)
{
hashmap_t *ret = malloc(sizeof(hashmap_t));
+ if (ret == NULL) {
+ return NULL;
+ }
ret->params = params;
ret->bucket_count = DEFAULT_HASHMAP_BUCKETS;