hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From y...@apache.org
Subject incubator-hawq git commit: HAWQ-145. Memory leak when free the argument instance of resource lease heart-beat thread in dispatcher process
Date Wed, 11 Nov 2015 04:00:52 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 957309a24 -> fd93b6dcb


HAWQ-145. Memory leak when free the argument instance of resource lease heart-beat thread
in dispatcher process


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/fd93b6dc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/fd93b6dc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/fd93b6dc

Branch: refs/heads/master
Commit: fd93b6dcbae587ef2672f64b73c7b4f7cd5eb1ae
Parents: 957309a
Author: Yi Jin <yjin@pivotal.io>
Authored: Wed Nov 11 12:00:36 2015 +0800
Committer: Yi Jin <yjin@pivotal.io>
Committed: Wed Nov 11 12:00:36 2015 +0800

----------------------------------------------------------------------
 src/backend/resourcemanager/communication/rmcomm_QD2RM.c | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/fd93b6dc/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
----------------------------------------------------------------------
diff --git a/src/backend/resourcemanager/communication/rmcomm_QD2RM.c b/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
index ea16c5f..c009b08 100644
--- a/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
+++ b/src/backend/resourcemanager/communication/rmcomm_QD2RM.c
@@ -1438,6 +1438,7 @@ void freeHeartBeatThreadArg(HeartBeatThreadArg *arg)
 	{
 		free((*arg)->HostAddrs[i]);
 	}
+	free((*arg)->HostAddrs);
 	free(*arg);
 	*arg = NULL;
 }


Mime
View raw message