[uim-commit] r347 - trunk/uim
ekato@freedesktop.org
ekato@freedesktop.org
Fri Jan 21 07:45:41 PST 2005
Author: ekato
Date: 2005-01-21 07:45:37 -0800 (Fri, 21 Jan 2005)
New Revision: 347
Modified:
trunk/uim/uim-ipc.c
Log:
* uim/uim-ipc.c (uim_ipc_open_command_with_option) : free string
at the proper place.
Modified: trunk/uim/uim-ipc.c
===================================================================
--- trunk/uim/uim-ipc.c 2005-01-21 09:23:18 UTC (rev 346)
+++ trunk/uim/uim-ipc.c 2005-01-21 15:45:37 UTC (rev 347)
@@ -151,7 +151,7 @@
{
int new_pid, result;
char **ap, *argv[10];
- char *str, *p;
+ char *str = NULL, *p;
if (*read_fp != NULL) {
fclose(*read_fp);
@@ -195,10 +195,10 @@
break;
}
*ap = NULL;
- free(str);
}
result = execvp(command, argv);
+ free(str);
if(result == -1) {
write(1,"err",strlen("err"));
More information about the Uim-commit
mailing list