[v9_18] Fix a function cleanup bug in dns_request_createraw()
When get_dispatch() returns an error code, the dns_request_createraw()
function jumps to the cleanup
label, which will leave a previous
attachment to the request
pointer unattached.
Fix the issue by jumping to the detach
label instead.
(cherry picked from commit 963f6a22)
Closes #3195 (closed)
Edited by Arаm Sаrgsyаn