use SAFE_FREE(), not free().
authorAndrew Bartlett <abartlet@samba.org>
Thu, 8 Jan 2004 08:41:26 +0000 (08:41 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 8 Jan 2004 08:41:26 +0000 (08:41 +0000)
Andrew Bartlett
(This used to be commit 595dee660742f8bd5770a5f7aaf3a5d1987dbcfa)

source3/nsswitch/winbindd_group.c

index 602c2f55bb3e6d3e6573d8c62a823785f23c8de8..b31dc92b38c94154bf91cc43344d3abc816c6edc 100644 (file)
@@ -880,7 +880,7 @@ enum winbindd_result winbindd_list_groups(struct winbindd_cli_state *state)
                        extra_data[extra_data_len++] = ',';
                }
 
-               free(groups.sam_entries);
+               SAFE_FREE(groups.sam_entries);
        }
 
        /* Assign extra_data fields in response structure */