From: Andre Noll Date: Thu, 21 Mar 2024 11:39:06 +0000 (+0100) Subject: client: Fix memory leak on exit. X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=824809dcdf32f93aa841fadbd62e8b2475768d40;p=paraslash.git client: Fix memory leak on exit. This triggers only if para_client is run interactively. The leak is harmless, but still.. --- diff --git a/client.c b/client.c index 84b7580c..d2d11fd3 100644 --- a/client.c +++ b/client.c @@ -549,6 +549,7 @@ __noreturn static void interactive_session(void) i9e_close(); para_log = stderr_log; out: + free(ici.history_file); if (ret < 0) PARA_ERROR_LOG("%s\n", para_strerror(-ret)); exit(ret < 0? EXIT_FAILURE : EXIT_SUCCESS);