From: Christian Grothoff Date: Sun, 8 Jan 2017 19:12:23 +0000 (+0100) Subject: fix potential free-of-null X-Git-Tag: taler-0.2.1~503 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8cee29503550fb5625e849f1ed92511b2da8e85d;p=oweals%2Fgnunet.git fix potential free-of-null --- diff --git a/src/nat/gnunet-service-nat.c b/src/nat/gnunet-service-nat.c index 7fa329b54..6ef0dce5e 100644 --- a/src/nat/gnunet-service-nat.c +++ b/src/nat/gnunet-service-nat.c @@ -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); }