Commit Diff
--- request.c +++ request.c @@ -141,6 +141,7 @@ get_path_from_request(char *request, char *finalpath) ret = check_gemini_file(finalpath); if (ret < 0) { log_debug("%s not found", finalpath); + free(decoded_request); return -2; } else if (ret == 1) { log_debug("%s is a directory", finalpath);