- check for NULL
authorBart Polot <bart@net.in.tum.de>
Wed, 18 Jul 2012 15:41:58 +0000 (15:41 +0000)
committerBart Polot <bart@net.in.tum.de>
Wed, 18 Jul 2012 15:41:58 +0000 (15:41 +0000)
src/mesh/gnunet-service-mesh.c

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