farm: fix possible null defererence

if trunk_file_read() return NULL, we should return immediately.

Signed-off-by: Liu Yuan <namei.unix@gmail.com>
farm: fix memory leak of slice.c

Signed-off-by: Liu Yuan <namei.unix@gmail.com>