Fixing leak and clang errors