[sr-dev] git:master: lib kmi: fix double allocation length calculation in mi_add_attr function