[PATCH 5 of 5] Free the get_install_dir return value

Wald Commits scm-commit at wald.intevation.org
Tue Aug 26 17:04:43 CEST 2014


# HG changeset patch
# User Andre Heinecke <andre.heinecke at intevation.de>
# Date 1409065451 -7200
# Node ID dbf5ea18cb20d07aac91d84c0fdf3d692529c35d
# Parent  171124737c762f9df85c7a68854ba2c71b21fc36
Free the get_install_dir return value.

diff -r 171124737c76 -r dbf5ea18cb20 cinst/nssstore_linux.c
--- a/cinst/nssstore_linux.c	Tue Aug 26 17:03:50 2014 +0200
+++ b/cinst/nssstore_linux.c	Tue Aug 26 17:04:11 2014 +0200
@@ -93,6 +93,7 @@
   argv[0] = xmalloc (exe_path_len + 1);
 
   ret = snprintf(argv[0], exe_path_len + 1, "%s%s", inst_dir, NSS_PROCESS_NAME);
+  xfree (inst_dir);
   if (ret < 0 || (size_t) ret != exe_path_len)
     {
       ERRORPRINTF ("Error setting executable variable.\n");


More information about the Trustbridge-commits mailing list