 More subtly, successful resource acquisition must dominate resource release, as otherwise the code will try to release a resource it has not acquired.The consequences of such an incorrect release range from being silently ignored to crashing the program or unpredictable behavior.These bugs generally manifest rarely, as they require resource allocation to first fail, which is generally an exceptional case.