rem: return -1;
add: goto error0;
context: int init_tm_stats(void){	cur_stats=shm_malloc(sizeof(struct t_stats));	if (cur_stats==0) {		LOG(L_ERR, "ERROR: init_stats: no mem for stats\n");		return -1;	}	acc_stats=shm_malloc(sizeof(struct t_stats));	if (acc_stats==0) {		LOG(L_ERR, "ERROR: init_stats: no mem for stats\n");		shm_free(cur_stats);		return -1;	}	if (register_fifo_cmd(fifo_stats, "t_stats", 0)<0) {		LOG(L_CRIT, "cannot register fifo stats\n");		return -1;	}	memset(cur_stats, 0, sizeof(struct t_stats) );	memset(acc_stats, 0, sizeof(struct t_stats) );	return 1;}