Commit c6dd509b99447e8d83bd317a76f7d9377ddc126a

Alexei Podtelezhnikov 2022-02-02T11:32:58

* src/cache/ftcmru.c (FTC_MruList_New): Explain zeroing.

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 b422679..6a14ae3 100644
--- a/src/cache/ftcmru.c
+++ b/src/cache/ftcmru.c
@@ -262,6 +262,8 @@
       if ( list->clazz.node_done )
         list->clazz.node_done( node, list->data );
     }
+
+    /* zero new node in case of node_init failure */
     else if ( FT_ALLOC( node, list->clazz.node_size ) )
       goto Exit;