[sr-dev] git:master:2b427a33: core: fix leak in case of error to get boundary inside check_boundaries()