loader: save memory pointer before it's lost
authorCourtney Goeltzenleuchter <courtneygo@google.com>
Wed, 9 Dec 2015 19:26:34 +0000 (12:26 -0700)
committerJon Ashburn <jon@lunarg.com>
Thu, 17 Dec 2015 18:20:07 +0000 (11:20 -0700)
commitb1c118f19f066052cc5e53ed6770777e01dd1aab
tree2e64ae64b394f0f15b729a3c175ecbb24c55a3bf
parent43b34d53611f139021c063fe2fa098f30bdbb6cb
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.
loader/loader.c