From 793f1e212bb08d2edba172cd32d0ef8cc43a1aeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 21 Apr 2016 08:48:59 +0200 Subject: map: add map_free_full utility function --- map.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'map.h') 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 -- cgit v1.2.3