diff options
author | Linus Nordberg <linus@nordu.net> | 2011-03-13 15:28:17 +0100 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-03-13 15:28:17 +0100 |
commit | 486662495bb2b87955d4ae4cc16a203edf25d5b4 (patch) | |
tree | 15874ffd46f2c428add18d6bf992340fd39fe763 | |
parent | 598295e525ab8aefebb2416a422b93db15160951 (diff) |
Don't double free in example code.
-rw-r--r-- | lib/examples/client-blocking.c | 8 |
1 files changed, 2 insertions, 6 deletions
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); |