diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-21 13:55:45 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-07-21 13:55:45 +0200 |
commit | 63446424c057f527c9c17be7e06f306a130789b4 (patch) | |
tree | f860f85b933793bf49e26f18db33111b493f116e /grammar/rainerscript.h | |
parent | 448f2eeea247fe4bf7bbbc982fb6df0f7a1b72f9 (diff) | |
download | rsyslog-63446424c057f527c9c17be7e06f306a130789b4.tar.gz rsyslog-63446424c057f527c9c17be7e06f306a130789b4.tar.xz rsyslog-63446424c057f527c9c17be7e06f306a130789b4.zip |
fixing minor memory leaks
Diffstat (limited to 'grammar/rainerscript.h')
-rw-r--r-- | grammar/rainerscript.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/grammar/rainerscript.h b/grammar/rainerscript.h index f7454ef5..7cc38abb 100644 --- a/grammar/rainerscript.h +++ b/grammar/rainerscript.h @@ -66,7 +66,7 @@ struct nvlst { struct nvlst *next; es_str_t *name; struct var val; - unsigned char *bUsed; + unsigned char bUsed; /**< was this node used during config processing? If not, this * indicates an error. After all, the user specified a setting * that the software does not know. @@ -234,6 +234,7 @@ int cnfexprEvalBool(struct cnfexpr *expr, void *usrptr); struct cnfnumval* cnfnumvalNew(long long val); struct cnfstringval* cnfstringvalNew(es_str_t *estr); struct cnfrule * cnfruleNew(enum cnfFiltType filttype, struct cnfactlst *actlst); +void cnfruleDestruct(struct cnfrule *rule); void cnfrulePrint(struct cnfrule *rule); struct cnfvar* cnfvarNew(char *name); struct cnffunc * cnffuncNew(es_str_t *fname, struct cnffparamlst* paramlst); @@ -243,6 +244,9 @@ int cnfparamGetIdx(struct cnfparamblk *params, char *name); struct cnfparamvals* nvlstGetParams(struct nvlst *lst, struct cnfparamblk *params, struct cnfparamvals *vals); void cnfparamsPrint(struct cnfparamblk *params, struct cnfparamvals *vals); +void varDelete(struct var *v); +void cnfparamvalsDestruct(struct cnfparamvals *paramvals, struct cnfparamblk *blk); +void cnfcfsyslinelstDestruct(struct cnfcfsyslinelst *cfslst); /* debug helper */ void cstrPrint(char *text, es_str_t *estr); |