diff options
Diffstat (limited to 'protocols/JabberG/src')
-rw-r--r-- | protocols/JabberG/src/jabber_ft.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/protocols/JabberG/src/jabber_ft.cpp b/protocols/JabberG/src/jabber_ft.cpp index e0ede298da..9ca292ca71 100644 --- a/protocols/JabberG/src/jabber_ft.cpp +++ b/protocols/JabberG/src/jabber_ft.cpp @@ -756,7 +756,7 @@ LBL_Fail: }
_close(fileId);
- NETLIBHTTPREQUEST *res = Netlib_HttpTransaction(m_hNetlibUser, &nlhr);
+ NLHR_PTR res(Netlib_HttpTransaction(m_hNetlibUser, &nlhr));
if (res == nullptr) {
debugLogA("error uploading file %S", pwszFileName);
goto LBL_Fail;
@@ -769,12 +769,9 @@ LBL_Fail: default:
debugLogA("error uploading file %S: error %d", pwszFileName, res->resultCode);
- Netlib_FreeHttpRequest(res);
goto LBL_Fail;
}
- Netlib_FreeHttpRequest(res);
-
// this parameter is optional, if not specified we simply use upload URL
CMStringA szMessage;
if (auto *szGetUrl = version ? XmlGetChildText(slotNode, "get") : XmlGetAttr(XmlFirstChild(slotNode, "get"), "url"))
|