Don't use realloc() in buffer__resize()
Don't use realloc() in buffer__resize()

It's silly to use realloc() in buffer__resize() because it preserves buffer
contents which means copying data when requested buffer size is not large
enough.

Signed-off-by: Pekka Enberg <add4fcd06328a394f0ad91feda7ee057316dc5ed@kernel.org>

penberg/pstore,penberg/pstore,penberg/pstore,penberg/pstore