Fixing memory leak in NCBM solver.
Merge pull request #2014 from tklein23/fix_libncbm_leak

Fixing memory leaks in NCBM solver.