From 65c2326592b7b1496c468459689904843e443b26 Mon Sep 17 00:00:00 2001 From: Timo Dritschler Date: Thu, 20 Nov 2014 17:37:55 +0100 Subject: Release KIRO to GitHub under LGPL v2.1 Added kiro_*_free methods to all three units Added installation guide Added readme Added licence file --- test/test-client-latency.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'test/test-client-latency.c') diff --git a/test/test-client-latency.c b/test/test-client-latency.c index b50610b..47260b4 100644 --- a/test/test-client-latency.c +++ b/test/test-client-latency.c @@ -15,14 +15,14 @@ main ( int argc, char *argv[] ) } KiroClient *client = kiro_client_new (); + KiroTrb *trb = kiro_trb_new (); if (-1 == kiro_client_connect (client, argv[1], argv[2])) { - g_object_unref (client); + kiro_client_free (client); return -1; } kiro_client_sync (client); - KiroTrb *trb = kiro_trb_new (); kiro_trb_adopt (trb, kiro_client_get_memory (client)); GTimer *timer = g_timer_new (); @@ -39,7 +39,8 @@ while (1) { printf ("Average Latency: %fus\n", (elapsed/50000.)*1000*1000); } g_timer_stop (timer); - g_object_unref (client); + kiro_client_free (client); + kiro_trb_free (trb); return 0; } -- cgit v1.2.3