-fix two mem leaks

2 files changed