Changeset 99b18a876a3d4ec5c15c811d87927341584e0ccc
- Timestamp:
- 02/04/12 20:06:30
(1 year ago)
- Author:
- Theo Schlossnagle <jesus@omniti.com>
- git-committer:
- Theo Schlossnagle <jesus@omniti.com> 1328385990 -0500
- git-parent:
[d659a9d1a9285c0627fb0b3114abefade0b0730b]
- git-author:
- Theo Schlossnagle <jesus@omniti.com> 1328385990 -0500
- Message:
assorted valgrind exposed memory leaks
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| rc446502 |
r99b18a8 |
|
| 158 | 158 | gettimeofday(¤t.whence, NULL); |
|---|
| 159 | 159 | snprintf(deny_msg, sizeof(deny_msg), "prevented by ACL '%s'", k ? k : "unknown"); |
|---|
| 160 | | current.status = strdup(deny_msg); |
|---|
| | 160 | current.status = deny_msg; |
|---|
| 161 | 161 | noit_check_set_stats(self, check, ¤t); |
|---|
| 162 | 162 | return NOIT_HOOK_DONE; |
|---|
| rd659a9d |
r99b18a8 |
|
| 332 | 332 | static int noit_snmp_session_cleanse(struct target_session *ts) { |
|---|
| 333 | 333 | if(ts->refcnt == 0 && ts->sess_handle) { |
|---|
| 334 | | eventer_remove_fd(ts->fd); |
|---|
| | 334 | eventer_t e; |
|---|
| | 335 | e = eventer_remove_fd(ts->fd); |
|---|
| | 336 | if(e) eventer_free(e); |
|---|
| 335 | 337 | ts->fd = -1; |
|---|
| 336 | 338 | if(ts->timeoutevent) { |
|---|
| r80f4747 |
r99b18a8 |
|
| 671 | 671 | backingstore_include_cnt = cnt; |
|---|
| 672 | 672 | noitL(noit_debug, "Processed %d backing stores.\n", backingstore_include_cnt); |
|---|
| | 673 | |
|---|
| | 674 | includes: |
|---|
| 673 | 675 | if(pobj) xmlXPathFreeObject(pobj); |
|---|
| 674 | | |
|---|
| 675 | | includes: |
|---|
| 676 | 676 | config_include_cnt = 0; |
|---|
| 677 | 677 | pobj = xmlXPathEval((xmlChar *)"//include[@file]", mix_ctxt); |
|---|
| rc172fd5 |
r99b18a8 |
|
| 95 | 95 | eventer_name_for_callback(e->callback), |
|---|
| 96 | 96 | e->fd, ac->remote_cn ? ac->remote_cn : "anonymous"); |
|---|
| | 97 | if(listener_closure) free(listener_closure); |
|---|
| 97 | 98 | return e->callback(e, mask, e->closure, tv); |
|---|
| 98 | 99 | } |
|---|