summaryrefslogtreecommitdiff
path: root/TAO/tao/HTTP_Parser.cpp
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2014-02-24 11:42:44 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2014-02-24 11:42:44 +0000
commitdf532056adfeab526c32cc349ffac88b36584f15 (patch)
treed5a3aea102e9bd8375934911b7d9bdaccdb5c35e /TAO/tao/HTTP_Parser.cpp
parentc0fc68bb60caaf0df4e441edb22e131e8dd7f6d2 (diff)
downloadATCD-df532056adfeab526c32cc349ffac88b36584f15.tar.gz
Mon Feb 24 11:43:59 UTC 2014 Johnny Willemsen <jwillemsen@remedy.nl>
* tao/HTTP_Parser.cpp: Fixed potential memory leak
Diffstat (limited to 'TAO/tao/HTTP_Parser.cpp')
-rw-r--r--TAO/tao/HTTP_Parser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/TAO/tao/HTTP_Parser.cpp b/TAO/tao/HTTP_Parser.cpp
index 042b5bdf573..0b708c22cac 100644
--- a/TAO/tao/HTTP_Parser.cpp
+++ b/TAO/tao/HTTP_Parser.cpp
@@ -75,7 +75,10 @@ TAO_HTTP_Parser::parse_string (const char *nior,
filename = ACE_OS::strdup(ptr);
}
else
+ {
+ delete [] hostname;
return 0;
+ }
}
}