fix potential free-of-null
authorChristian Grothoff <christian@grothoff.org>
Sun, 8 Jan 2017 19:12:23 +0000 (20:12 +0100)
committerChristian Grothoff <christian@grothoff.org>
Sun, 8 Jan 2017 19:12:23 +0000 (20:12 +0100)
src/nat/gnunet-service-nat.c

index 7fa329b54ecf6d560c5b709bb69987a05c939807..6ef0dce5ea68d79b5a51cc9108815238a317f391 100644 (file)
@@ -1968,7 +1968,7 @@ client_disconnect_cb (void *cls,
     ch->ext_dns = NULL;
   }
   GNUNET_free_non_null (ch->hole_external);
-  GNUNET_free (ch->section_name);
+  GNUNET_free_non_null (ch->section_name);
   GNUNET_free (ch);
 }