Codegeneration: Free memory correctly when using -polly-vectorizer=polly

This fixes PR19421.

Reported-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>