]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
Fix memory leaks in guestInfo/diskInfo.c.
authorJohn Wolfe <jwolfe@vmware.com>
Tue, 22 Sep 2020 21:54:07 +0000 (14:54 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Tue, 22 Sep 2020 21:54:07 +0000 (14:54 -0700)
commit81aff3a41e14b4aaae285bebb95cc6545a600c77
treef96b829a23cbb9ac0a19c949b6538f7f6bd4cc27
parent1c5d9dbbd3c19eb135633f9fefc47c654eacde76
Fix memory leaks in guestInfo/diskInfo.c.

When checking for IDE, SATA and SAS disk drives, the glib GMatchInfo is
passed to a g_regex_match() function inside a for loop.  It was not
properly passed to g_match_info_free() before subsequently being reused.

This addresses https://github.com/vmware/open-vm-tools/issues/452
open-vm-tools/services/plugins/guestInfo/diskInfo.c