Procházet zdrojové kódy

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 12036.
description: The replica_create_ruv_tombstone() has been modified to release ruv when an error occurs.
Endi S. Dewata před 15 roky
rodič
revize
44d8a63531

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

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