commit | be4d57c1ea7f17b9cadb0150b330efd9b6026972 | [log] [tgz] |
---|---|---|
author | Peter Lieven <pl@kamp.de> | Tue Sep 30 09:09:11 2014 +0200 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Sep 30 13:30:51 2014 +0200 |
tree | a33f866126446d10c955a1766c1965e359105bb1 | |
parent | 49e7e31aa00a9fb466203de19120fe5c4459cac0 [diff] |
util: introduce bitmap_try_new regular bitmap_new simply aborts if the memory allocation fails. bitmap_try_new returns NULL on failure and allows for proper error handling. Signed-off-by: Peter Lieven <pl@kamp.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>