diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-13 12:52:53 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-13 12:52:53 +0100 |
commit | 2bb202f665df594286595e226251b3580b474a4d (patch) | |
tree | f2287bb7a0e44472a7273f80c421b9465aaae0f3 /runtime/vmop.c | |
parent | cdc8cf8d55f519066445ce3f9e899d092824a98e (diff) | |
download | rsyslog-2bb202f665df594286595e226251b3580b474a4d.tar.gz rsyslog-2bb202f665df594286595e226251b3580b474a4d.tar.xz rsyslog-2bb202f665df594286595e226251b3580b474a4d.zip |
bugfix: removed (newly introduced) memory leaks
Diffstat (limited to 'runtime/vmop.c')
-rw-r--r-- | runtime/vmop.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/vmop.c b/runtime/vmop.c index 441dae6c..a343481e 100644 --- a/runtime/vmop.c +++ b/runtime/vmop.c @@ -61,12 +61,8 @@ rsRetVal vmopConstructFinalize(vmop_t __attribute__((unused)) *pThis) /* destructor for the vmop object */ BEGINobjDestruct(vmop) /* be sure to specify the object type also in END and CODESTART macros! */ CODESTARTobjDestruct(vmop) - if( pThis->opcode == opcode_PUSHSYSVAR - || pThis->opcode == opcode_PUSHMSGVAR - || pThis->opcode == opcode_PUSHCONSTANT) { - if(pThis->operand.pVar != NULL) - var.Destruct(&pThis->operand.pVar); - } + if(pThis->operand.pVar != NULL) + var.Destruct(&pThis->operand.pVar); ENDobjDestruct(vmop) |