From 486662495bb2b87955d4ae4cc16a203edf25d5b4 Mon Sep 17 00:00:00 2001 From: Linus Nordberg Date: Sun, 13 Mar 2011 15:28:17 +0100 Subject: Don't double free in example code. --- lib/examples/client-blocking.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lib/examples') diff --git a/lib/examples/client-blocking.c b/lib/examples/client-blocking.c index 5b5059c..8d2b68d 100644 --- a/lib/examples/client-blocking.c +++ b/lib/examples/client-blocking.c @@ -73,14 +73,10 @@ blocking_client (const char *av1, const char *av2, int use_request_object_flag) cleanup: err = rs_err_conn_pop (conn); - if (resp) - rs_packet_destroy (resp); - if (req) - rs_packet_destroy (req); - if (conn) - rs_conn_destroy (conn); if (request) rs_request_destroy (request); + if (conn) + rs_conn_destroy (conn); if (h) rs_context_destroy (h); -- cgit v1.1