Found by coverity. Fixes: CID#1237512
In practice this shouldn't make much difference, but sometimes our headers might be newer, and we want to test them.
Basically wraps an example provided by George McCollister. Should help with leaks in the future.