Fix memory leak in Oj.dump
if raise an exception
#676
Merged
Oj.dump
if raise an exception
#676