Resolve "Address memory leak on error"

Mark Andrews requested to merge 609-address-memory-leak-on-error-v9_11 into v9_11

Merge request reports