chiark / gitweb /
test: use _cleanup_hashmap_free_ instread of _cleanup_(hashmap_freep)
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 14 May 2018 05:14:17 +0000 (14:14 +0900)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
src/test/test-hashmap.c

index 9a22fc905371f2a9e0eb978611a949002f75cc79..50fcb364faf6cf9df3a379880cca1405bf4b11da 100644 (file)
@@ -125,7 +125,7 @@ static void test_iterated_cache(void) {
 }
 
 static void test_path_hashmap(void) {
-        _cleanup_(hashmap_freep) Hashmap *h = NULL;
+        _cleanup_hashmap_free_ Hashmap *h = NULL;
 
         assert_se(h = hashmap_new(&path_hash_ops));