aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/nntp/MCNNTPSession.cpp
diff options
context:
space:
mode:
authorGravatar Alexander Belyavskiy <diejmon@gmail.com>2019-03-25 20:26:44 +0300
committerGravatar HoĆ  V. DINH <dinh.viet.hoa@gmail.com>2019-03-25 10:26:44 -0700
commit58473736aa31e57ed94c7ab6221af8def5839ca1 (patch)
treeb6f3e4fad011fac603ba00a2846d48f8e3cac42a /src/core/nntp/MCNNTPSession.cpp
parentc4a2e84c3b6dbfd34ecd9d1f44cf032b437139fd (diff)
Fix few memory leaks (#1804)
* Fix memory leaks
Diffstat (limited to 'src/core/nntp/MCNNTPSession.cpp')
-rw-r--r--src/core/nntp/MCNNTPSession.cpp1
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;