contrib: fixed resource leak in parsertrace