summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-11 11:45:22 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-11 11:45:22 +0200
commitee1afa2f3607ce6a1b278ce0a8d051aa040a362b (patch)
tree6a1f06246992184a081245cf4cfb4fad0d8e007d
parent406f20f0cfa1b8a95a041400d99d606809590036 (diff)
downloadrsyslog-ee1afa2f3607ce6a1b278ce0a8d051aa040a362b.tar.gz
rsyslog-ee1afa2f3607ce6a1b278ce0a8d051aa040a362b.tar.xz
rsyslog-ee1afa2f3607ce6a1b278ce0a8d051aa040a362b.zip
cosmetic: simplify
-rw-r--r--runtime/objomsr.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/objomsr.c b/runtime/objomsr.c
index 9cf3781b..e63eb681 100644
--- a/runtime/objomsr.c
+++ b/runtime/objomsr.c
@@ -42,9 +42,7 @@ rsRetVal OMSRdestruct(omodStringRequest_t *pThis)
/* free the strings */
if(pThis->ppTplName != NULL) {
for(i = 0 ; i < pThis->iNumEntries ; ++i) {
- if(pThis->ppTplName[i] != NULL) {
- free(pThis->ppTplName[i]);
- }
+ free(pThis->ppTplName[i]);
}
free(pThis->ppTplName);
}