summaryrefslogtreecommitdiff
path: root/module-template.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2008-03-29 12:14:26 +0100
committerMichael Biebl <biebl@debian.org>2008-03-29 12:14:26 +0100
commit3d4464215f5496ec5d9b95954bac9704f9c7b125 (patch)
tree5d72c7e5a1d790b171204718eef2f78843da50b7 /module-template.h
parentea79ad8dae160f0d0966b5a02fa3b73f0c3d1940 (diff)
downloadrsyslog-3d4464215f5496ec5d9b95954bac9704f9c7b125.tar.gz
Imported Upstream version 1.19.1upstream/1.19.1
Diffstat (limited to 'module-template.h')
-rw-r--r--module-template.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/module-template.h b/module-template.h
index ce13bce..05ef22a 100644
--- a/module-template.h
+++ b/module-template.h
@@ -226,10 +226,13 @@ finalize_it:\
*pp = p;\
} else {\
/* cleanup, we failed */\
- if(*ppOMSR != NULL)\
+ if(*ppOMSR != NULL) {\
OMSRdestruct(*ppOMSR);\
*ppOMSR = NULL;\
- }
+ }\
+ if(pData != NULL)\
+ freeInstance(&pData);\
+ }
#define ENDparseSelectorAct \
return iRet;\