src/oping.c: Use `context_destroy' to free the context.
[liboping.git] / src / oping.c
index 1c1df54..4100caf 100644 (file)
@@ -455,7 +455,7 @@ int main (int argc, char **argv)
                }
 
                ping_iterator_set_context (iter, NULL);
-               free (context);
+               context_destroy (context);
        }
 
        ping_destroy (ping);