libctdb: fix io_elem resource leak on realloc failure.
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 18 Jun 2010 06:18:48 +0000 (15:48 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Fri, 18 Jun 2010 06:18:48 +0000 (15:48 +0930)
commit936b02443d36306407d6a26e8037cf31e3190b32
treeb961e156ad10fb17e0115f3605223658e90dc55a
parent680ee6afaa89f21115a1bf33a8b9e7e92084a1a1
libctdb: fix io_elem resource leak on realloc failure.

Found by nfsim.

I knew about this, but as we stop when it happens anyway I didn't fix
it.  But it bugs nfsim, so fix it.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
libctdb/io_elem.c