On 09/27/2012 10:33 AM, Eric Anholt wrote:
Ian Romanick <i...@freedesktop.org> writes:

From: Ian Romanick <ian.d.roman...@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?

That's a fair point. It also looks like the free in brwCreateContext is bogus. The structure is allocated with rzalloc, but it's freed with free. :(

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to