You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
393 B
25 lines
393 B
|
|
#include "tst.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
void tst_cleanup(struct tst *tst)
|
|
{
|
|
struct node_lines *current_line;
|
|
struct node_lines *next_line;
|
|
|
|
next_line = tst->node_lines;
|
|
|
|
do
|
|
{
|
|
current_line = next_line;
|
|
next_line = current_line->next;
|
|
free(current_line->node_line);
|
|
free(current_line);
|
|
}
|
|
while(next_line != NULL);
|
|
|
|
free(tst);
|
|
}
|
|
|