comparison 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
comparison
equal deleted inserted replaced
946:171124737c76 947:dbf5ea18cb20
91 91
92 exe_path_len = strlen(inst_dir) + strlen(NSS_PROCESS_NAME); 92 exe_path_len = strlen(inst_dir) + strlen(NSS_PROCESS_NAME);
93 argv[0] = xmalloc (exe_path_len + 1); 93 argv[0] = xmalloc (exe_path_len + 1);
94 94
95 ret = snprintf(argv[0], exe_path_len + 1, "%s%s", inst_dir, NSS_PROCESS_NAME); 95 ret = snprintf(argv[0], exe_path_len + 1, "%s%s", inst_dir, NSS_PROCESS_NAME);
96 xfree (inst_dir);
96 if (ret < 0 || (size_t) ret != exe_path_len) 97 if (ret < 0 || (size_t) ret != exe_path_len)
97 { 98 {
98 ERRORPRINTF ("Error setting executable variable.\n"); 99 ERRORPRINTF ("Error setting executable variable.\n");
99 xfree (argv[0]); 100 xfree (argv[0]);
100 return -1; 101 return -1;

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