Commit ef5a31fc authored by Brian Paul's avatar Brian Paul
Browse files

gallium/util: change assertion to conditional in util_bitmask_destroy()



If we fail to create a context in the VMware driver we call this function
unconditionally to free a bunch of bit vectors.  Instead of asserting on
a null pointer, just no-op.
Reviewed-by: Jose Fonseca's avatarJose Fonseca <jfonseca@vmware.com>
parent 68116dcd
......@@ -320,9 +320,9 @@ util_bitmask_get_first_index(struct util_bitmask *bm)
void
util_bitmask_destroy(struct util_bitmask *bm)
{
assert(bm);
FREE(bm->words);
FREE(bm);
if (bm) {
FREE(bm->words);
FREE(bm);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment