src/oping.c: Use `context_destroy' to free the context.
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 12 Mar 2009 07:37:10 +0000 (08:37 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Thu, 12 Mar 2009 07:37:10 +0000 (08:37 +0100)
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);