root/tags/rel_1-0-1/ext/http11/tst_cleanup.c
| Revision 4, 393 bytes (checked in by zedshaw, 3 years ago) |
|---|
| Line | |
|---|---|
| 1 | |
| 2 | #include "tst.h" |
| 3 | #include <stdio.h> |
| 4 | #include <stdlib.h> |
| 5 | |
| 6 | void tst_cleanup(struct tst *tst) |
| 7 | { |
| 8 | struct node_lines *current_line; |
| 9 | struct node_lines *next_line; |
| 10 | |
| 11 | next_line = tst->node_lines; |
| 12 | |
| 13 | do |
| 14 | { |
| 15 | current_line = next_line; |
| 16 | next_line = current_line->next; |
| 17 | free(current_line->node_line); |
| 18 | free(current_line); |
| 19 | } |
| 20 | while(next_line != NULL); |
| 21 | |
| 22 | free(tst); |
| 23 | } |
| 24 |
Note: See TracBrowser for help on using the browser.
