summaryrefslogtreecommitdiff
path: root/src/common/HPM.c
diff options
context:
space:
mode:
authorDastgir <dastgirpojee@rocketmail.com>2015-01-20 16:39:23 +0530
committerdastgir <dastgirpojee@rocketmail.com>2015-01-20 07:10:31 -0500
commitd8400bcc065367779f67740bc59aac976bd5eda1 (patch)
treefe39ba540986f856fa9807d9ff61dbd0c24139b5 /src/common/HPM.c
parent4ae2b9b72dd4fce3d7a7778222d1c39abbb564a4 (diff)
downloadhercules-d8400bcc065367779f67740bc59aac976bd5eda1.tar.gz
hercules-d8400bcc065367779f67740bc59aac976bd5eda1.tar.bz2
hercules-d8400bcc065367779f67740bc59aac976bd5eda1.tar.xz
hercules-d8400bcc065367779f67740bc59aac976bd5eda1.zip
Fixes Compile Error on Windows
Diffstat (limited to 'src/common/HPM.c')
-rw-r--r--src/common/HPM.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/common/HPM.c b/src/common/HPM.c
index 25ca5441d..6e73d1b2a 100644
--- a/src/common/HPM.c
+++ b/src/common/HPM.c
@@ -882,8 +882,9 @@ void hpm_final(void) {
aFree(HPM->confs[i]);
}
if (HPM->cmdline_plugins) {
- for (i = 0; i < HPM->cmdline_plugins_count; i++)
- aFree(HPM->cmdline_plugins[i]);
+ int j;
+ for (j = 0; j < HPM->cmdline_plugins_count; j++)
+ aFree(HPM->cmdline_plugins[j]);
aFree(HPM->cmdline_plugins);
HPM->cmdline_plugins = NULL;
HPM->cmdline_plugins_count = 0;