瀏覽代碼

Fix for #157901 : FMR in windows sync agreement code

David Boreham 20 年之前
父節點
當前提交
4997581940
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      ldap/servers/plugins/replication/windows_private.c

+ 2 - 1
ldap/servers/plugins/replication/windows_private.c

@@ -136,8 +136,9 @@ windows_parse_config_entry(Repl_Agmt *ra, const char *type, Slapi_Entry *e)
 		{
 			windows_private_set_windows_domain(ra,tmpstr);
 		}
+		/* No need to free tmpstr because it was aliased by the call above */
+		tmpstr = NULL;
 		retval = 1;
-		slapi_ch_free((void**)&tmpstr);
 	}
 	return retval;
 }