Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Burton2013-06-04 17:27:16 +0000
committerFelix Burton2013-06-04 17:28:57 +0000
commit817247a7e28b0e447b4fe326d5ca7cb26ec0bafa (patch)
tree19c53681829fda501c5a273463b97fd53c929e5d
parentc8af1ff17ffa58a130b0da0fc544311957845455 (diff)
downloadorg.eclipse.tcf.agent-817247a7e28b0e447b4fe326d5ca7cb26ec0bafa.tar.gz
org.eclipse.tcf.agent-817247a7e28b0e447b4fe326d5ca7cb26ec0bafa.tar.xz
org.eclipse.tcf.agent-817247a7e28b0e447b4fe326d5ca7cb26ec0bafa.zip
Fix crash due to free of non alloced memory
-rw-r--r--agent/tcf/framework/channel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/tcf/framework/channel.c b/agent/tcf/framework/channel.c
index 8d2d60d2..90b5b5b7 100644
--- a/agent/tcf/framework/channel.c
+++ b/agent/tcf/framework/channel.c
@@ -305,7 +305,7 @@ ChannelServer * channel_server(PeerServer * ps) {
if (transportname == NULL) {
transportname = "TCP";
- peer_server_addprop(ps, "TransportName", transportname);
+ peer_server_addprop(ps, loc_strdup("TransportName"), loc_strdup(transportname));
}
if (strcmp(transportname, "TCP") == 0 || strcmp(transportname, "SSL") == 0) {

Back to the top