I wish it were clear from this function name that the resources will be released after processing.