Make sure to release the buffer we're not using in case of an error.

related-to-bug: 2366606
1 file changed