...
Code Block |
---|
for (p = head; p != NULL; p= p->q) { q = p->next; free(p); } |
References
VU#390044, http://www.kb.cert.org/vuls/id/390044
...
- ISO/IEC 9899-1999 Section 7.20.3.2 The free function
- Seacord 05 Chapter 4 Dynamic Memory Management
- Kerrighan 88 Section 7.8.5 Storage Management