Fixed memory leak in winbindd_getgrent()
authorTim Potter <tpot@samba.org>
Thu, 28 Sep 2000 04:50:16 +0000 (04:50 +0000)
committerTim Potter <tpot@samba.org>
Thu, 28 Sep 2000 04:50:16 +0000 (04:50 +0000)
source/nsswitch/winbindd_group.c

index a4d7b439359a513639f6b8d5c54b8a41bfa00b36..b69c2f6426ee2c405582785277ba8ed55d7ffe7e 100644 (file)
@@ -703,6 +703,8 @@ enum winbindd_result winbindd_getgrent(struct winbindd_cli_state *state)
               [group_list_ndx * sizeof(struct winbindd_gr)], 
               gr_mem_list, gr_mem_list_len);
 
+       safe_free(gr_mem_list);
+
        state->response.length += gr_mem_list_len;
 
        /* Out of domains */