Commit 946e1353eaa34872d0b138a13820fc03a782c545

Alexei Podtelezhnikov 2022-01-31T14:19:07

[cache] Partially revert 9870b6c07e2c. Fix crashes reported by Werner. * src/cache/ftcmru.c (FTC_MruList_New): Use `FT_ALLOC` again.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/cache/ftcmru.c b/src/cache/ftcmru.c
index bfee24b..b422679 100644
--- a/src/cache/ftcmru.c
+++ b/src/cache/ftcmru.c
@@ -262,7 +262,7 @@
       if ( list->clazz.node_done )
         list->clazz.node_done( node, list->data );
     }
-    else if ( FT_QALLOC( node, list->clazz.node_size ) )
+    else if ( FT_ALLOC( node, list->clazz.node_size ) )
       goto Exit;
 
     error = list->clazz.node_init( node, key, list->data );