Project

General

Profile

Bug #432 » fix-432.patch

Gordon Ross, 2010-12-08 11:12 AM

View differences:

usr/src/lib/smbsrv/libsmb/common/smb_idmap.c Mon Sep 13 15:21:36 2010 -0700 → usr/src/lib/smbsrv/libsmb/common/smb_idmap.c Wed Dec 08 15:08:51 2010 -0500
20 20
 */
21 21
/*
22 22
 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
23
 * Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
23 24
 */
24 25

  
25 26
#include <syslog.h>
......
174 175
		 * SIDs are allocated only when mapping
175 176
		 * UID/GID to SIDs
176 177
		 */
177
		for (i = 0; i < sib->sib_nmap; i++)
178
		for (i = 0; i < sib->sib_nmap; i++) {
178 179
			smb_sid_free(sib->sib_maps[i].sim_sid);
180
			free(sib->sib_maps[i].sim_domsid);
181
		}
179 182
	}
180 183

  
181 184
	if (sib->sib_size && sib->sib_maps) {
......
367 370
			return (-1);
368 371

  
369 372
		sid = smb_sid_fromstr(sim->sim_domsid);
370
		free(sim->sim_domsid);
371 373
		if (sid == NULL)
372 374
			return (-1);
373 375

  
    (1-1/1)