Fix a memory leak when sub_filter() is used

test/command/suite/select/function/sub_filter/column.test is a
reproducable test. But grntest doesn't detect the memory leak because
leaked objects are freed at grn_ctx_fin() on process exit. We need
another memory leak check tool that can detect a memory leak in a
command processing.