cli: Use lsmash_malloc_zero() instead of calloc().
box: Use lsmash_free() instead of free().

Also remove unneeded NULL pointer checks for freeing.