[Mesa-dev] [PATCH] i915: Don't leave dangling pointer to i915 context on failure

Eric Anholt eric at anholt.net
Thu Sep 27 10:33:02 PDT 2012


Ian Romanick <idr at freedesktop.org> writes:

> From: Ian Romanick <ian.d.romanick at intel.com>
>
> Otherwise intelDestroyContext would try to dereference the pointer to
> freed memory.

Does DestroyContext get called out of all these error paths?  If so, why
not just remove our freeing?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120927/81602e26/attachment.pgp>


More information about the mesa-dev mailing list