fixed some memory leaks in codegen
Merge branch 'master' of github.com:cvxgrp/qcml