From 50134c46dc337c35b8ecf78b3c5b4308cf8fb791 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 8 Jan 2016 22:27:43 -0500 Subject: some stuff --- src/hash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/hash.c') diff --git a/src/hash.c b/src/hash.c index 035236c..d5eeba0 100644 --- a/src/hash.c +++ b/src/hash.c @@ -1,6 +1,6 @@ /* * NetCosm - a MUD server - * Copyright (C) 2015 Franklin Wei + * Copyright (C) 2016 Franklin Wei * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -17,6 +17,7 @@ */ #include "hash.h" + #include #include @@ -89,6 +90,7 @@ void hash_free(void *ptr) while(node) { struct hash_node *next = node->next; + if(map->free_data) map->free_data((void*)node->data); if(map->free_key) -- cgit v1.1