|   | ![[ Previous ]](navbprev.gif)  ![[ Contents ]](navbhome.gif)  ![[ Index ]](navbhelp.gif)  ![[ Next ]](navbnext.gif)  | 
    void Ns_SetFree(
    Ns_Set *set
    );
The Ns_SetFree function deletes all the fields of an Ns_Set and frees the set structure. After calling Ns_SetFree, the set is no longer valid and cannot be used.
    Ns_Set *aSet;
    
    aSet = Ns_SetCreate(""); /* set name can be NULL */
    Ns_SetPut(aSet, "foo", "foovalue");
    /* do something with aSet */
    Ns_SetFree(aSet);