fixed memory leaks in libSBML