[Lldb-commits] [PATCH] D11285: freeaddrinfo(NULL) segfaults on Android.
Chaoren Lin
chaorenl at google.com
Thu Jul 16 17:01:22 PDT 2015
chaoren created this revision.
chaoren added a reviewer: tberghammer.
chaoren added a subscriber: lldb-commits.
Herald added subscribers: danalbert, tberghammer.
http://reviews.llvm.org/D11285
Files:
source/Host/common/SocketAddress.cpp
Index: source/Host/common/SocketAddress.cpp
===================================================================
--- source/Host/common/SocketAddress.cpp
+++ source/Host/common/SocketAddress.cpp
@@ -304,8 +304,10 @@
*this = service_info_list;
result = IsValid ();
}
-
- :: freeaddrinfo (service_info_list);
+
+ if (service_info_list)
+ ::freeaddrinfo(service_info_list);
+
return result;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11285.29966.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150717/88cf7a7f/attachment.bin>
More information about the lldb-commits
mailing list