revert aligned realloc() changesm this should be identical to r5784