OSDN Git Service

Check for a NULL pointer, do not call Build.
authorChristopher Ferris <cferris@google.com>
Tue, 5 Aug 2014 22:43:13 +0000 (15:43 -0700)
committerChristopher Ferris <cferris@google.com>
Thu, 7 Aug 2014 19:59:55 +0000 (12:59 -0700)
commit35388e93f7dc45257bbffc675710728aeb663394
treec72e6f32acd4ef9827f1f5a37740b5d8ae308d2a
parent7204c04dd86ae8ce05690e38737b2abf017a0a69
Check for a NULL pointer, do not call Build.

When calling BacktraceMap::Create(), a NULL pointer is returned if Build
fails. Building twice can cause problems and might leak memory.

(cherry picked from commit 836572a07142627ff291d686a4e9e03a0988344b)

Change-Id: I59d29bb6e5324de6eb099916045c2ab1d9e56630
runtime/mem_map.cc