char *commpath = (char*)ha_malloc(sizeof(char)*local_socket_len); 
char *commpath = (char*)cl_malloc(sizeof(char)*local_socket_len); 
init_client_ipc_comms(const char *child,		      gboolean (*dispatch)(IPC_Channel* source_data					   ,gpointer    user_data),		      crmd_client_t *client_data){	FNIN();	IPC_Channel *ch;	GHashTable * attrs;	GCHSource *the_source = NULL;	void *callback_data = client_data;	static char 	path[] = IPC_PATH_ATTR;	int local_socket_len = 2; // 2 = '/' + '\0'	local_socket_len += strlen(child);	local_socket_len += strlen(WORKING_DIR);	char *commpath = (char*)ha_malloc(sizeof(char)*local_socket_len);	sprintf(commpath, WORKING_DIR "/%s", child);	commpath[local_socket_len - 1] = '\0';    	cl_log(LOG_DEBUG, "Attempting to talk on: %s", commpath);	attrs = g_hash_table_new(g_str_hash,g_str_equal);	g_hash_table_insert(attrs, path, commpath);	ch = ipc_channel_constructor(IPC_ANYTYPE, attrs);	g_hash_table_destroy(attrs);	if (ch == NULL) {		cl_log(LOG_CRIT,		       "Could not access channel on: %s",		       commpath);	} else if (ch->ops->initiate_connection(ch) != IPC_OK) {		cl_log(LOG_CRIT, "Could not init comms on: %s", commpath);		FNRET(NULL);	}	if(callback_data == NULL)		callback_data = ch;	ch->ops->set_recv_qlen(ch, 100);	ch->ops->set_send_qlen(ch, 100);	the_source = G_main_add_IPC_Channel(G_PRIORITY_LOW,					    ch,					    FALSE, 					    dispatch,					    callback_data, 					    default_ipc_input_destroy);	if(client_data != NULL) {		client_data->client_source = the_source;		client_data->client_channel = ch;	}		FNRET(ch);}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/554785d11039fb7088eea5c02092c9d9534b8434/ipcutils.c/buggy/crm/common/ipcutils.c