Fix clang static analyzer warnings
Fix the following warnings:
system/extras/librank/librank.c:422:12: warning: Potential leak of
memory pointed to by 'pi' [clang-analyzer-unix.Malloc]
system/extras/librank/librank.c:137:29: warning: Call to 'realloc' has
an allocation size of 0 bytes [clang-analyzer-unix.API]
system/extras/librank/librank.c:95:21: warning: Call to 'realloc' has an
allocation size of 0 bytes [clang-analyzer-unix.API]
The memory leak is real but we don't care about memory leaks when exiting
main. So just replace return by exit to silence the analyzer.
Bug: b/
27101951
Test:Warnings are gone.
Change-Id: I9af4ec4a4b740f5edcf9390b30a16b95d76e6a20