[SATYR PATCH] Use sr_realloc instead of realloc