Author: jra Date: 2006-03-13 00:30:23 +0000 (Mon, 13 Mar 2006) New Revision: 14271
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=14271 Log: Fix coverity #203. Ensure we free on error exit. Jeremy. Modified: trunk/source/nsswitch/winbindd_group.c Changeset: Modified: trunk/source/nsswitch/winbindd_group.c =================================================================== --- trunk/source/nsswitch/winbindd_group.c 2006-03-13 00:30:18 UTC (rev 14270) +++ trunk/source/nsswitch/winbindd_group.c 2006-03-13 00:30:23 UTC (rev 14271) @@ -827,8 +827,6 @@ [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; DEBUG(10, ("returning %d groups, length = %d\n", @@ -838,6 +836,8 @@ done: + SAFE_FREE(gr_mem_list); + if (group_list_ndx > 0) request_ok(state); else