aboutsummaryrefslogtreecommitdiff
path: root/map.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-21 08:48:59 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-21 08:49:33 +0200
commit793f1e212bb08d2edba172cd32d0ef8cc43a1aeb (patch)
tree7aa1626594a448b81a2f7ee60b5ca8210912d6a8 /map.h
parent348eb8074fe0d314ca08fa39f4584019621e3f92 (diff)
downloadvis-793f1e212bb08d2edba172cd32d0ef8cc43a1aeb.tar.gz
vis-793f1e212bb08d2edba172cd32d0ef8cc43a1aeb.tar.xz
map: add map_free_full utility function
Diffstat (limited to 'map.h')
-rw-r--r--map.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/map.h b/map.h
index 0540fab..816e537 100644
--- a/map.h
+++ b/map.h
@@ -35,5 +35,7 @@ bool map_empty(const Map*);
void map_clear(Map*);
/* Release all memory associated with this map */
void map_free(Map*);
+/* Call free(3) for every pointer stored in the map, then free the map itself */
+void map_free_full(Map*);
#endif