diff cinst/nssstore_linux.c @ 947:dbf5ea18cb20

Free the get_install_dir return value.
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 26 Aug 2014 17:04:11 +0200
parents 698b6a9bd75e
children b3695a3399de
line wrap: on
line diff
--- 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");

http://wald.intevation.org/projects/trustbridge/