Fix minor potential leak in sstable2json

patch by blerer; reviewed by slebresne for CASSANDRA-7709