We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80fdb63 commit ca89a11Copy full SHA for ca89a11
cutil/oldlist.cpp
@@ -87,8 +87,6 @@
87
#include <stdio.h>
88
#if MAC_OR_DOS
89
#include <stdlib.h>
90
-#else
91
-#include "freelist.h"
92
#endif
93
94
/*----------------------------------------------------------------------
@@ -202,8 +200,7 @@ LIST destroy(LIST list) {
202
200
* Return the space taken by the LISTs of a list to the heap.
203
201
**********************************************************************/
204
void destroy_nodes(LIST list, void_dest destructor) {
205
- if (destructor == NULL)
206
- destructor = memfree;
+ ASSERT_HOST(destructor != NULL);
207
208
while (list != NIL_LIST) {
209
if (first_node(list) != NULL) (*destructor)(first_node(list));
0 commit comments