diff options
Diffstat (limited to 'src/transport/transport_api2_core.c')
-rw-r--r-- | src/transport/transport_api2_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/transport_api2_core.c b/src/transport/transport_api2_core.c index cd8bacf3d..002af81fc 100644 --- a/src/transport/transport_api2_core.c +++ b/src/transport/transport_api2_core.c | |||
@@ -762,7 +762,7 @@ GNUNET_TRANSPORT_core_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
762 | reconnect (h); | 762 | reconnect (h); |
763 | if (NULL == h->mq) | 763 | if (NULL == h->mq) |
764 | { | 764 | { |
765 | GNUNET_free_non_null (h->handlers); | 765 | GNUNET_free (h->handlers); |
766 | GNUNET_free (h); | 766 | GNUNET_free (h); |
767 | return NULL; | 767 | return NULL; |
768 | } | 768 | } |
@@ -792,7 +792,7 @@ GNUNET_TRANSPORT_core_disconnect (struct GNUNET_TRANSPORT_CoreHandle *handle) | |||
792 | } | 792 | } |
793 | GNUNET_CONTAINER_multipeermap_destroy (handle->neighbours); | 793 | GNUNET_CONTAINER_multipeermap_destroy (handle->neighbours); |
794 | handle->neighbours = NULL; | 794 | handle->neighbours = NULL; |
795 | GNUNET_free_non_null (handle->handlers); | 795 | GNUNET_free (handle->handlers); |
796 | handle->handlers = NULL; | 796 | handle->handlers = NULL; |
797 | GNUNET_free (handle); | 797 | GNUNET_free (handle); |
798 | } | 798 | } |