You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by jp...@apache.org on 2016/09/03 22:14:04 UTC

[trafficserver] branch master updated (2311328 -> 4adcfae)

This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a change to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git.

      from  2311328   Merge pull request #921 from maskit/ts4776
       new  500c7ba   TS-4794: Fix memory leak in test_P_DNS.cc
       new  4adcfae   TS-4794: Fix memory leak in test_P_Net.cc

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "adds" were already present in the repository and have only
been added to this reference.


Summary of changes:
 iocore/dns/test_P_DNS.cc | 3 ++-
 iocore/net/test_P_Net.cc | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].

[trafficserver] 01/02: TS-4794: Fix memory leak in test_P_DNS.cc

Posted by jp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit 500c7baf7614ffe4e110c120883607ba5e753263
Author: Bryon Gloden, CISSP� <ci...@bryongloden.com>
AuthorDate: Thu Aug 11 18:57:56 2016 -0400

    TS-4794: Fix memory leak in test_P_DNS.cc
    
    This closes #855.
---
 iocore/dns/test_P_DNS.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iocore/dns/test_P_DNS.cc b/iocore/dns/test_P_DNS.cc
index 1150960..3b280ad 100644
--- a/iocore/dns/test_P_DNS.cc
+++ b/iocore/dns/test_P_DNS.cc
@@ -45,7 +45,7 @@ struct NetTesterSM : public Continuation {
   handle_read(int event, void *data)
   {
     int r;
-    char *str;
+    char *str = NULL;
     switch (event) {
     case VC_EVENT_READ_READY:
       r   = reader->read_avail();
@@ -70,6 +70,7 @@ struct NetTesterSM : public Continuation {
     default:
       ink_release_assert(!"unknown event");
     }
+    delete[] str;
     return EVENT_CONT;
   }
 };

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.

[trafficserver] 02/02: TS-4794: Fix memory leak in test_P_Net.cc

Posted by jp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit 4adcfae47a4a575157c8845c8da906ed4bf94d15
Author: Bryon Gloden, CISSP� <ci...@bryongloden.com>
AuthorDate: Thu Aug 11 18:59:36 2016 -0400

    TS-4794: Fix memory leak in test_P_Net.cc
    
    This closes #855.
---
 iocore/net/test_P_Net.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/iocore/net/test_P_Net.cc b/iocore/net/test_P_Net.cc
index 5bf9c68..6cbfaf5 100644
--- a/iocore/net/test_P_Net.cc
+++ b/iocore/net/test_P_Net.cc
@@ -45,7 +45,7 @@ struct NetTesterSM : public Continuation {
   handle_read(int event, void *data)
   {
     int r;
-    char *str;
+    char *str = NULL;
     switch (event) {
     case VC_EVENT_READ_READY:
       r   = reader->read_avail();
@@ -68,6 +68,7 @@ struct NetTesterSM : public Continuation {
     default:
       ink_release_assert(!"unknown event");
     }
+    delete[] str;
     return EVENT_CONT;
   }
 };

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.