diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-01 14:33:19 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-07-01 14:33:19 +0200 |
commit | 7bfa03bdc0b73647ffdbe4b73e5c1649af665fbf (patch) | |
tree | 545a24dd681bd28455702b06dff41f7814bf3561 /tcps_sess.c | |
parent | d6faee67b413d1f257c96a14e46f15ec1868a365 (diff) | |
download | rsyslog-7bfa03bdc0b73647ffdbe4b73e5c1649af665fbf.tar.gz rsyslog-7bfa03bdc0b73647ffdbe4b73e5c1649af665fbf.tar.xz rsyslog-7bfa03bdc0b73647ffdbe4b73e5c1649af665fbf.zip |
now put the new property-based methods to good use
... hopefully reducing the number of allocs/frees as well as overall
memory usage in a busy system (plus that these shared properties hopefully
remain in cache longer than its single-instance counterparts...)
Diffstat (limited to 'tcps_sess.c')
-rw-r--r-- | tcps_sess.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tcps_sess.c b/tcps_sess.c index f701fe57..8d307380 100644 --- a/tcps_sess.c +++ b/tcps_sess.c @@ -156,6 +156,7 @@ SetHostIP(tcps_sess_t *pThis, uchar *pszHostIP) CHKiRet(prop.SetString(pThis->fromHostIP, pszHostIP, ustrlen(pszHostIP))); finalize_it: + free(pszHostIP); RETiRet; } |