From: Oliver Kurth Date: Fri, 26 Oct 2018 17:45:00 +0000 (-0700) Subject: Fix memory leak in deployPkg.c X-Git-Tag: stable-11.0.0~352 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6a8e6973701ebe3d6e55be6862bfa11873431c4;p=thirdparty%2Fopen-vm-tools.git Fix memory leak in deployPkg.c In function DeployPkg_TcloDeploy, pkgName is not freed if deployPkg failed to submit to the thread pool. --- diff --git a/open-vm-tools/services/plugins/deployPkg/deployPkg.c b/open-vm-tools/services/plugins/deployPkg/deployPkg.c index 63754486a..06719ec9c 100644 --- a/open-vm-tools/services/plugins/deployPkg/deployPkg.c +++ b/open-vm-tools/services/plugins/deployPkg/deployPkg.c @@ -295,6 +295,7 @@ DeployPkg_TcloDeploy(RpcInData *data) // IN TOOLSDEPLOYPKG_ERROR_DEPLOY_FAILED); } g_free(msg); + free(pkgName); } free(argCopy);