Bug fix: don't leave pointer initialized.
Bug fix: don't free a stack variable.