diff options
author | Vincent Richard <[email protected]> | 2013-02-11 20:10:19 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2013-02-11 20:10:19 +0000 |
commit | f0e12cbadcb10064eb417e35b1e4d3a86bae70fb (patch) | |
tree | aaa8ced9b884bef173b0f6e473779712659da1cb /src/platforms/windows/windowsHandler.cpp | |
parent | Added missing includes. (diff) | |
download | vmime-f0e12cbadcb10064eb417e35b1e4d3a86bae70fb.tar.gz vmime-f0e12cbadcb10064eb417e35b1e4d3a86bae70fb.zip |
Fixed invalid use of freed memory.
Diffstat (limited to '')
-rw-r--r-- | src/platforms/windows/windowsHandler.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/platforms/windows/windowsHandler.cpp b/src/platforms/windows/windowsHandler.cpp index 88ba786c..e399cb50 100644 --- a/src/platforms/windows/windowsHandler.cpp +++ b/src/platforms/windows/windowsHandler.cpp @@ -241,8 +241,9 @@ const vmime::string windowsHandler::getHostName() const { if (isFQDN(p->ai_canonname)) { + const string ret(p->ai_canonname); freeaddrinfo(info); - return p->ai_canonname; + return ret; } } |