summaryrefslogtreecommitdiffstats
path: root/runtime/vm.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-02-04 16:43:21 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2010-02-04 16:43:21 +0100
commitef193bf0ae75d206e4b50022f8c07e3b908c8491 (patch)
tree2ea9d48da9884b532e02a129565b68f648105280 /runtime/vm.c
parent66d129c9ca24f6f3001fad9cc854c54a360df49e (diff)
parent8c3ab2e26f1bae46ff34fc1d0a10a69c4db78127 (diff)
downloadrsyslog-ef193bf0ae75d206e4b50022f8c07e3b908c8491.tar.gz
rsyslog-ef193bf0ae75d206e4b50022f8c07e3b908c8491.tar.xz
rsyslog-ef193bf0ae75d206e4b50022f8c07e3b908c8491.zip
Merge branch 'v4-stable' into v4-beta
Diffstat (limited to 'runtime/vm.c')
-rw-r--r--runtime/vm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/vm.c b/runtime/vm.c
index d7cd52d5..aaf3c879 100644
--- a/runtime/vm.c
+++ b/runtime/vm.c
@@ -88,6 +88,9 @@ rsfrAddFunction(uchar *szName, prsf_t rsf)
funcRegRoot = pEntry;
finalize_it:
+ if(iRet != RS_RET_OK && iRet != RS_RET_DUP_FUNC_NAME)
+ free(pEntry);
+
RETiRet;
}