From a1cb6c541213da63a7ab3e5b1cd51ba941fff84d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Fri, 17 Jan 2020 18:17:19 +0100 Subject: [PATCH] fix leak --- src/util/os_installation.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/os_installation.c b/src/util/os_installation.c index 990acede4..dcd31dc2c 100644 --- a/src/util/os_installation.c +++ b/src/util/os_installation.c @@ -611,10 +611,10 @@ GNUNET_OS_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind) DIR_SEPARATOR_STR "lib" DIR_SEPARATOR_STR, (NULL != multiarch) ? multiarch : "", dirname); + GNUNET_free (dirname); if (GNUNET_YES == GNUNET_DISK_directory_test (tmp, GNUNET_YES)) { GNUNET_free (execpath); - GNUNET_free (dirname); return tmp; } GNUNET_free (tmp); -- 2.25.1