Revision dd32809e include/PoolObjectSQL.h

View differences:

include/PoolObjectSQL.h
189 189
        const string& name,
190 190
        const string& value)
191 191
    {
192
        SingleAttribute * sattr;
192
        SingleAttribute * sattr = new SingleAttribute(name,value);
193 193

  
194
        obj_template->erase(name);
194
        obj_template->erase(sattr->name());
195 195

  
196
        sattr = new SingleAttribute(name,value);
197 196
        obj_template->set(sattr);
198 197

  
199 198
        return 0;

Also available in: Unified diff