Attempt to avoid memory leak in openbabel