rem: size=sizeof(int)*process_count();
add: size=sizeof(stat_counter)*process_count();
context: int init_tm_stats(void){	int size;	tm_stats=shm_malloc(sizeof(struct t_stats));	if (tm_stats==0) {		LOG(L_ERR, "ERROR: init_stats: no mem for stats\n");		goto error0;	}	memset(tm_stats, 0, sizeof(struct t_stats) );	size=sizeof(int)*process_count();	tm_stats->s_waiting=shm_malloc(size);	if (tm_stats->s_waiting==0) {		LOG(L_ERR, "ERROR: init_stats: no mem for stats\n");		goto error1;	}	memset(tm_stats->s_waiting, 0, size );	tm_stats->s_transactions=shm_malloc(size);	if (tm_stats->s_transactions==0) {		LOG(L_ERR, "ERROR: init_stats: no mem for stats\n");		goto error2;	}	memset(tm_stats->s_transactions, 0, size );	tm_stats->s_client_transactions=shm_malloc(size);	if (tm_stats->s_client_transactions==0) {		LOG(L_ERR, "ERROR: init_stats: no mem for stats\n");		goto error3;	}	memset(tm_stats->s_client_transactions, 0, size );		 	if (register_fifo_cmd(fifo_stats, "t_stats", 0)<0) {		LOG(L_CRIT, "cannot register fifo stats\n");		goto error4;	}	return 1;error4:	shm_free(tm_stats->s_client_transactions);error3:	shm_free(tm_stats->s_transactions);error2:	shm_free(tm_stats->s_waiting);error1:	shm_free(tm_stats);error0:	return -1;}