Index: uim-1.4.1/uim/uim-helper-server.c =================================================================== --- uim-1.4.1/uim/uim-helper-server.c (wersja 5144) +++ uim-1.4.1/uim/uim-helper-server.c (kopia robocza) @@ -384,7 +384,8 @@ FD_ZERO(&s_fdset_write); s_max_fd = 0; server_fd = init_server_fd(path); - + free(path); + printf("waiting\n\n"); fflush(stdout); @@ -396,8 +397,6 @@ } /* fprintf(stderr,"Waiting for connection at %s\n", path);*/ - free(path); - signal(SIGPIPE, SIG_IGN); uim_helper_server_process_connection(server_fd); Index: uim-1.4.1/uim/uim.c =================================================================== --- uim-1.4.1/uim/uim.c (wersja 5144) +++ uim-1.4.1/uim/uim.c (kopia robocza) @@ -124,7 +124,10 @@ } get_context_id(uc); if (uc->id == -1) + { + free(uc); return NULL; + } uc->ptr = ptr; uc->is_enable = 1;