reduce calls to realloc() if size did not change.
reduce calls to realloc() if size did not change.

lpereira/kmod,pmmccorm/kmod,lpereira/kmod,Distrotech/kmod,lucasdemarchi/kmod,Distrotech/kmod,Distrotech/kmod,lpereira/kmod,lucasdemarchi/kmod,lucasdemarchi/kmod,pmmccorm/kmod,pmmccorm/kmod