static inline double MagickRound(double x)
{
  /*
    Round the fraction to nearest integer.
  */
  if ((x-floor(x)) < (ceil(x)-x))
    return(floor(x));
  return(ceil(x));
}

The product does not release a resource after its effective lifetime has ended, i.e., after the resource is no longer needed.