smalloc: don't crash on being passed a bad pointer
authorJens Axboe <axboe@fb.com>
Tue, 17 Mar 2015 16:45:18 +0000 (10:45 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 17 Mar 2015 16:45:18 +0000 (10:45 -0600)
commit45a65144dd71ecc963a94d3dfd7bc01d4bde664a
tree876e6367338c5c3c7d0f62e76c04f6b4c7078d4a
parent95e564523d502e5a682ae7f6ee793ca4c9ca76ca
smalloc: don't crash on being passed a bad pointer

This can happen if we pass sfree() memory not allocated by smalloc.
Ignore it and log an error instead of triggering an assert().

Signed-off-by: Jens Axboe <axboe@fb.com>
smalloc.c