diff --git a/rdo.c b/rdo.c index bcb1862..3016396 100644 --- a/rdo.c +++ b/rdo.c @@ -24,6 +24,7 @@ void getconf(FILE* fp, const char* entry, char* result, size_t len_result) { if (token) { strncpy(result, token, len_result); result[strcspn(result, "\n")] = 0; + free(line); return; } }