ソースを参照

Bug 619122 - fix coverify Defect Type: Resource leaks issues CID 11975 - 12053

https://bugzilla.redhat.com/show_bug.cgi?id=619122
Resolves: bug 619122
Bug description: fix coverify Defect Type: Resource leaks issues CID 12035.
description: The replica_create_ruv_tombstone() has been modified to release csn when an error occurs.
Endi S. Dewata 15 年 前
コミット
a3628f693e
1 ファイル変更1 行追加0 行削除
  1. 1 0
      ldap/servers/plugins/replication/repl5_replica.c

+ 1 - 0
ldap/servers/plugins/replication/repl5_replica.c

@@ -2725,6 +2725,7 @@ replica_create_ruv_tombstone(Replica *r)
 			slapi_log_error(SLAPI_LOG_FATAL, repl_plugin_name,
 							"Cannot obtain CSN for new replica update vector for %s\n",
 							escape_string(slapi_sdn_get_dn(r->repl_root),ebuf));
+			csn_free(&csn);
             goto done;
 		}
 	}