Commit d7958b21e7f8c447a26bb2436f08402b2c308be4

Chris Evans 2011-03-23T08:13:06

Fix some potential problems on reallocation failures The count was incremented before the allocation and not fixed in case of failure * xpath.c: corrects a few instances where the available count of some structure is updated before we know the allocation actually succeeds