From: Christian Grothoff Date: Fri, 17 Jan 2020 17:17:19 +0000 (+0100) Subject: fix leak X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a1cb6c541213da63a7ab3e5b1cd51ba941fff84d;p=oweals%2Fgnunet.git fix leak --- 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);