check_readonlyfs: free allocated memory at exit

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>