Disable -Werror
1.2 release.
..and begin 1.3
fix potential use after free if memory alloc fails.

Coverity #1042351