fixed two memory leaks
[strongswan.git] / src / libpts / tcg / tcg_pts_attr_req_func_comp_evid.c
index 58f8a0c..0629895 100644 (file)
@@ -278,7 +278,7 @@ METHOD(tcg_pts_attr_req_func_comp_evid_t, add_component, void,
        entry = malloc_thing(entry_t);
        entry->flags = flags;
        entry->depth = depth;
-       entry->name = name->clone(name);
+       entry->name = name;
        this->list->insert_last(this->list, entry);
 }