]> pilppa.com Git - libplpbus.git/commitdiff
memory leak fixes
authorMika Laitio <lamikr@pilppa.org>
Thu, 17 Mar 2011 23:20:38 +0000 (01:20 +0200)
committerMika Laitio <lamikr@pilppa.org>
Thu, 17 Mar 2011 23:20:38 +0000 (01:20 +0200)
Signed-off-by: Mika Laitio <lamikr@pilppa.org>
src/plpbus/BusClient.cc
src_test/test_admin.cc

index 75583fe4cd9ffaf008830944d825403348eebff4..2ab2a2d6975676889197fd7bad4fdd7263968551 100644 (file)
@@ -161,6 +161,7 @@ int BusClient::send_message_and_wait_response(const BusMessage *msg_req_param, B
        seq     = (DataItemSequence *)msg_req_param->_dataItemSeq;
        _server->send_dataitem_message_and_wait_response(*seq, seq_rsp);
        *msg_rsp_param  = new BusMessageInternal(*seq_rsp);
+       delete(seq_rsp);
        return 0;
 }
 
index 5f2ba79368566460a74510038da5dd7b8b3e0c26..48fa9706d183c4c16c1e64d7143060039558f7b4 100644 (file)
@@ -17,5 +17,6 @@ int main(int argc, char** argv)
        client  = new plpbus::BusClient();
        client->init(argv[1]);
        client->request_shutdown();
+       delete(client);
        return 0;
 }