lib/mem.c: using read_file to replace the redundant code

inside _check function, using read_file func to replace
the redundant code.

Signed-off-by: Zhouping Liu <zliu@redhat.com>
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
1 file changed