diff options
author | Alexander Belyavskiy <diejmon@gmail.com> | 2019-03-25 20:26:44 +0300 |
---|---|---|
committer | HoĆ V. DINH <dinh.viet.hoa@gmail.com> | 2019-03-25 10:26:44 -0700 |
commit | 58473736aa31e57ed94c7ab6221af8def5839ca1 (patch) | |
tree | b6f3e4fad011fac603ba00a2846d48f8e3cac42a /src/core/nntp | |
parent | c4a2e84c3b6dbfd34ecd9d1f44cf032b437139fd (diff) |
Fix few memory leaks (#1804)
* Fix memory leaks
Diffstat (limited to 'src/core/nntp')
-rw-r--r-- | src/core/nntp/MCNNTPSession.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/nntp/MCNNTPSession.cpp b/src/core/nntp/MCNNTPSession.cpp index ae383581..7e0018e6 100644 --- a/src/core/nntp/MCNNTPSession.cpp +++ b/src/core/nntp/MCNNTPSession.cpp @@ -499,6 +499,7 @@ Data * NNTPSession::fetchArticleByMessageID(String * messageID, ErrorCode * pErr msgID = strdup(messageID->UTF8Characters()); r = newsnntp_article_by_message_id(mNNTP, msgID, &content, &content_len); + free(msgID); if (r == NEWSNNTP_ERROR_STREAM) { * pError = ErrorConnection; return NULL; |