summaryrefslogtreecommitdiffstats
path: root/src/lex.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2013-08-14 04:44:31 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2013-08-14 04:44:31 +0200
commit61cc8fdedcb41fd226c2d866e3a8c551591cd7e1 (patch)
tree0ab49eecce9af53a7298d66f8c709827565b7410 /src/lex.c
parent9929ac9123983ab82bf6b2eb609b19896e1af210 (diff)
downloadfastd-61cc8fdedcb41fd226c2d866e3a8c551591cd7e1.tar
fastd-61cc8fdedcb41fd226c2d866e3a8c551591cd7e1.zip
lex: don't check for NULL before free
Diffstat (limited to 'src/lex.c')
-rw-r--r--src/lex.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/lex.c b/src/lex.c
index 0b43e19..5c293a3 100644
--- a/src/lex.c
+++ b/src/lex.c
@@ -376,9 +376,6 @@ fastd_lex_t* fastd_lex_init(FILE *file) {
}
void fastd_lex_destroy(fastd_lex_t *lex) {
- if (!lex)
- return;
-
free(lex);
}