From 14952f0047c37298f20c5c084c60a8be344cb446 Mon Sep 17 00:00:00 2001 From: Mika Laitio Date: Thu, 10 Mar 2011 19:57:29 +0200 Subject: [PATCH] memory leak fix Signed-off-by: Mika Laitio --- src/plpbus/BusMessage.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plpbus/BusMessage.cc b/src/plpbus/BusMessage.cc index ea81741..12b35c6 100644 --- a/src/plpbus/BusMessage.cc +++ b/src/plpbus/BusMessage.cc @@ -55,7 +55,7 @@ int BusMessage::add_string_parameter(string arg_name_param, string value_param) length = seq->length(); item = new DataItem(); item->name = strdup(arg_name_param.c_str()); - item->value <<= strdup(value_param.c_str()); + item->value <<= value_param.c_str(); seq->length(length + 1); (*seq)[length] = *item; } -- 2.41.1