[Lldb-commits] [PATCH] D11285: freeaddrinfo(NULL) segfaults on Android.
Chaoren Lin
chaorenl at google.com
Fri Jul 17 12:13:00 PDT 2015
This revision was automatically updated to reflect the committed changes.
Closed by commit rL242560: freeaddrinfo(NULL) segfaults on Android. (authored by chaoren).
Changed prior to commit:
http://reviews.llvm.org/D11285?vs=29966&id=30020#toc
Repository:
rL LLVM
http://reviews.llvm.org/D11285
Files:
lldb/trunk/source/Host/common/SocketAddress.cpp
Index: lldb/trunk/source/Host/common/SocketAddress.cpp
===================================================================
--- lldb/trunk/source/Host/common/SocketAddress.cpp
+++ lldb/trunk/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.30020.patch
Type: text/x-patch
Size: 470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150717/0ffb5c21/attachment.bin>
More information about the lldb-commits
mailing list