rpc: fix in response_callback()

Memory leak in response_callback() when the heap
is exhausted and realloc() is returning NULL.
In this case, the original address (buf->data) was lost.

Change-Id: I770cfbf51d0772dc2135b019c636d85325340d63
Signed-off-by: Alexandre Gonzalo <alexandre.gonzalo@arm.com>
1 file changed