Fix typo with register native allocation.

bug 18579193

Change-Id: I42d30709b79a37d6a4126559a511e98e9c8d4808