Index: qemud/buf.c =================================================================== RCS file: /data/cvs/libvirt/qemud/buf.c,v retrieving revision 1.1 diff -u -r1.1 buf.c --- qemud/buf.c 15 Mar 2007 17:30:04 -0000 1.1 +++ qemud/buf.c 21 Mar 2007 15:01:58 -0000 @@ -118,18 +118,7 @@ char * bufferContentAndFree (bufferPtr buf) { - char *content; - - content = buf->content; - - /* Try to reduce the size of the block, but if it fails, it doesn't - * matter. - */ - if (buf->use < buf->size) { - char *old_content = content; - content = realloc (content, buf->use); - content = content ? content : old_content; - } + char *content = buf->content; free (buf); return content;