rem: free_params(ptr->params);
add: if (_shm) shm_free_params(ptr->params); else free_params(ptr->params);
context: static inline void do_free_rr(rr_t** _r, int _shm){	rr_t* ptr;	while(*_r) {		ptr = *_r;		*_r = (*_r)->next;		if (ptr->params) {			free_params(ptr->params);		}		if (_shm) shm_free(ptr);		else pkg_free(ptr);	}}