You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2014/07/16 05:12:45 UTC
[04/14] git commit: TS-1475: Coverity 1021655 - fix use after free.
TS-1475: Coverity 1021655 - fix use after free.
Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/8d2e2729
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/8d2e2729
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/8d2e2729
Branch: refs/heads/master
Commit: 8d2e272961a8f8ab23f132915071635c1b1e7a71
Parents: 3cecd88
Author: Jeff Elsloo <je...@cable.comcast.com>
Authored: Tue Jul 15 14:00:48 2014 -0600
Committer: Phil Sorber <so...@apache.org>
Committed: Tue Jul 15 21:11:38 2014 -0600
----------------------------------------------------------------------
lib/ts/HostLookup.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/trafficserver/blob/8d2e2729/lib/ts/HostLookup.cc
----------------------------------------------------------------------
diff --git a/lib/ts/HostLookup.cc b/lib/ts/HostLookup.cc
index bdb4a05..863d124 100644
--- a/lib/ts/HostLookup.cc
+++ b/lib/ts/HostLookup.cc
@@ -945,8 +945,7 @@ HostLookup::InsertBranch(HostBranch * insert_in, const char *level_data)
switch (insert_in->type) {
case HOST_TERMINAL:
// Should not happen
- ink_assert(0);
- delete new_branch;
+ ink_release_assert(0);
break;
case HOST_HASH:
ink_hash_table_insert((InkHashTable *) insert_in->next_level, (char *) level_data, new_branch);