Sorted out potential memory leak issues flagged by clang.
Sorted out potential memory leak issues flagged by clang.

--HG--
extra : source : 8c64fd7dc040f0bf7f70dce589197fabd4caaae8

billgarrison/SOExtendedAttributes,billgarrison/SOExtendedAttributes