Fix potential memory leak.

* Do not reset caller's *param to NULL when realloc fails.
  The caller will free *param.

Test: build with WITH_TIDY=1
Change-Id: Iadd800b77fea4ea423d440e6e97e4dfc00c09fcd
1 file changed