# | Line 20 | Line 20 | static LIST *free_lists = NULL; | |
---|---|---|
20 | extern int Malloc_cnt; | |
21 | #endif | |
22 | LIST | |
23 | + | /* NOTE: Memory is not initialized */ |
24 | *new_list() | |
25 | { | |
26 | LIST *l; | |
# | Line 36 | Line 37 | LIST | |
37 | if( !(l = (LIST *)malloc(sizeof(LIST)))) | |
38 | error(SYSTEM,"new_list():Unable to allocate memory"); | |
39 | } | |
39 | – | /* clear the memory */ |
40 | – | bzero(l, sizeof(LIST)); |
41 | – | |
40 | return(l); | |
41 | } | |
42 | ||
# | Line 74 | Line 72 | LIST **end; | |
72 | ||
73 | list = new_list(); | |
74 | SET_LIST_DATA(list,d); | |
75 | < | |
75 | > | SET_LIST_NEXT(list,NULL); |
76 | if(!l) | |
77 | { | |
78 | if(end) | |
# | Line 210 | Line 208 | LIST **list; | |
208 | } | |
209 | return(FALSE); | |
210 | } | |
211 | + | |
212 | + | |
213 | + | |
214 | + | |
215 | ||
216 | ||
217 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |