]> pilppa.org Git - libplpbus.git/blobdiff - src/plpbus/BusMessage.cc
memory leak fix
[libplpbus.git] / src / plpbus / BusMessage.cc
index ea81741f335295f783bb2481203cadea1d2d431e..12b35c6b866134a5d47697278bf098fc404c1734 100644 (file)
@@ -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;
        }