Fix a small memory leak when resolving PTR addresses

Fixes bug 11437; bugfix on 0.2.4.7-alpha.

Found by coverity; this is CID 1198198.
Merge remote-tracking branch 'public/bug11437_024' into maint-0.2.4