diff --git a/src/main.c b/src/main.c
index 06fcbe5b8b0cd204d5b38125d1f547d6b7e34ed0..bde43acea7a3edaffc817f87e5ddef9a5852c51a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1774,7 +1774,7 @@ static int parseconfig(const char *filename,
       case '\n':
       case '*':
       case '\0':
-        free(line);
+        free(aline);
         continue;
       }