Fixed memory leak on xmlGetProp