Fixed memory leak

This commit is contained in:
Pierre Pronchery 2008-05-22 00:45:40 +00:00
parent 9a29610c44
commit d78d179b60

View File

@ -73,6 +73,7 @@ Token * token_new(char const * filename, unsigned int line, unsigned int col)
/* functions */ /* functions */
void token_delete(Token * token) void token_delete(Token * token)
{ {
free(token->filename);
free(token->string); free(token->string);
object_delete(token); object_delete(token);
} }