浏览代码

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,
 			slapi_log_error(SLAPI_LOG_FATAL, repl_plugin_name,
 							"Cannot obtain CSN for new replica update vector for %s\n",
 							"Cannot obtain CSN for new replica update vector for %s\n",
 							escape_string(slapi_sdn_get_dn(r->repl_root),ebuf));
 							escape_string(slapi_sdn_get_dn(r->repl_root),ebuf));
+			csn_free(&csn);
             goto done;
             goto done;
 		}
 		}
 	}
 	}