summaryrefslogtreecommitdiffstats
path: root/lib/route/pktloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/route/pktloc.c')
-rw-r--r--lib/route/pktloc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/route/pktloc.c b/lib/route/pktloc.c
index 9fcf4a4..5bb841c 100644
--- a/lib/route/pktloc.c
+++ b/lib/route/pktloc.c
@@ -138,8 +138,7 @@ static int read_pktlocs(void)
last_read = st.st_mtime;
errout_scanner:
- if (scanner)
- pktloc_lex_destroy(scanner);
+ pktloc_lex_destroy(scanner);
errout_close:
fclose(fd);
errout: