commit | 54ce81abee3ae8f9497ed84bda28bd49310ecc3a | [log] [tgz] |
---|---|---|
author | Courtney Goeltzenleuchter <courtneygo@google.com> | Wed Dec 09 12:26:34 2015 -0700 |
committer | Jon Ashburn <jon@lunarg.com> | Thu Dec 17 11:20:07 2015 -0700 |
tree | 0de280bc921e67f159cf913f8a31043f9ef96b64 | |
parent | ad7a501d9f53f6b0d7eb542aa3ae60ef595dc255 [diff] |
loader: save memory pointer before it's lost The first time a library is loaded the code will allocate space for the list. But if the dlopen fails the pointer for that wasn't being saved and the next call would get a segfault on a null pointer. Now save the new pointer so it doesn't get lost.