icnss: Free regread buffer before allocating new one

Free already allocated buffer before allocating new one
to avoid memory leak when someone keep writing to this file
but never read it.

CRs-Fixed: 2051862
Change-Id: I29784fb30ea8eed315b7d073d35480972642bc55
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
1 file changed