- use free_non_null
authorBart Polot <bart@net.in.tum.de>
Wed, 18 Jul 2012 15:43:02 +0000 (15:43 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 18 Jul 2012 15:43:02 +0000 (15:43 +0000)
src/mesh/gnunet-service-mesh.c

index d9780a205b457c323929b2127f0579f55a6faf0a..cd2308898156ecbb433a0dcd46e265b52412c3e9 100644 (file)
@@ -4739,8 +4739,7 @@ handle_local_client_disconnect (void *cls, struct GNUNET_SERVER_Client *client)
     {
       GNUNET_free (c->regexes[i]);
     }
-    if (NULL != c->regexes)
-      GNUNET_free (c->regexes);
+    GNUNET_free_non_null (c->regexes);
     if (GNUNET_SCHEDULER_NO_TASK != c->regex_announce_task)
       GNUNET_SCHEDULER_cancel (c->regex_announce_task);
     next = c->next;