]> pilppa.com Git - libplpbus.git/commitdiff
memory leak fix
authorMika Laitio <lamikr@pilppa.org>
Thu, 10 Mar 2011 17:57:29 +0000 (19:57 +0200)
committerMika Laitio <lamikr@pilppa.org>
Thu, 10 Mar 2011 17:57:29 +0000 (19:57 +0200)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
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;
        }