Skip to content

Commit

Permalink
TS-4794: Fix memory leak in test_P_Net.cc
Browse files Browse the repository at this point in the history
This closes #855.
  • Loading branch information
Bryon Gloden, CISSP® authored and jpeach committed Sep 3, 2016
1 parent 500c7ba commit 4adcfae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion iocore/net/test_P_Net.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -68,6 +68,7 @@ struct NetTesterSM : public Continuation {
default:
ink_release_assert(!"unknown event");
}
delete[] str;
return EVENT_CONT;
}
};
Expand Down

0 comments on commit 4adcfae

Please sign in to comment.