Fixed 'free()' Memory Issue

Hi Sam,

just saw: http://sam.roon.io/setting-up-open-source-and-live-coding-part-2 and found a Memory Issues in your test Case Helper Method.