]> git.tue.mpg.de Git - paraslash.git/commitdiff
client: Fix memory leak on exit.
authorAndre Noll <maan@tuebingen.mpg.de>
Thu, 21 Mar 2024 11:39:06 +0000 (12:39 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Tue, 7 May 2024 18:29:02 +0000 (20:29 +0200)
This triggers only if para_client is run interactively. The leak is
harmless, but still..

client.c

index 84b7580cf9554c433651da1f3eed28a6f1f39a74..d2d11fd34344d5b4f5186daf568850fe153cbacb 100644 (file)
--- 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);