Add error test and fix memory leak, reported by Ashwini Sharma.
1 file changed