Leif Hedstrom created TS-4873: --------------------------------- Summary: CID 1196428: Resource leaks (CTOR_DTOR_LEAK) Key: TS-4873 URL: https://issues.apache.org/jira/browse/TS-4873 Project: Traffic Server Issue Type: Bug Components: Clustering Reporter: Leif Hedstrom
{code} *** CID 1196428: Resource leaks (CTOR_DTOR_LEAK) /mgmt/cluster/ClusterCom.cc: 390 in ClusterCom::ClusterCom(unsigned long, char *, int, char *, int, char *)() 384 // ink_filepath_make 385 ink_filepath_merge(cluster_conf, sizeof(cluster_conf), p, cluster_file, INK_FILEPATH_TRUENAME); 386 // XXX: Shouldn't we pass the cluster_conf to the Rollback ??? 387 // 388 Debug("ccom", "[ClusterCom::ClusterCom] Using cluster file: %s", cluster_file); 389 Debug("ccom", "[ClusterCom::ClusterCom] Using cluster conf: %s", cluster_conf); CID 1196428: Resource leaks (CTOR_DTOR_LEAK) The constructor allocates field "cluster_file_rb" of "ClusterCom" but the destructor and whatever functions it calls do not free it. 390 cluster_file_rb = new Rollback(cluster_file, false); 391 392 ats_free(cluster_file); 393 394 if (ink_sys_name_release(sys_name, sizeof(sys_name), sys_release, sizeof(sys_release)) >= 0) { 395 mgmt_log("[ClusterCom::ClusterCom] Node running on OS: '%s' Release: '%s'\n", sys_name, sys_release); ** CID 1021725: Uninitialized members (UNINIT_CTOR) /mgmt/cluster/ClusterCom.cc: 450 in ClusterCom::ClusterCom(unsigned long, char *, int, char *, int, char *)() {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)