diff options
Diffstat (limited to 'src/transport/transport_api_core.c')
-rw-r--r-- | src/transport/transport_api_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/transport_api_core.c b/src/transport/transport_api_core.c index 5d841fa10..55647508d 100644 --- a/src/transport/transport_api_core.c +++ b/src/transport/transport_api_core.c | |||
@@ -891,7 +891,7 @@ GNUNET_TRANSPORT_core_connect (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
891 | reconnect (h); | 891 | reconnect (h); |
892 | if (NULL == h->mq) | 892 | if (NULL == h->mq) |
893 | { | 893 | { |
894 | GNUNET_free_non_null (h->handlers); | 894 | GNUNET_free (h->handlers); |
895 | GNUNET_free (h); | 895 | GNUNET_free (h); |
896 | return NULL; | 896 | return NULL; |
897 | } | 897 | } |
@@ -922,7 +922,7 @@ GNUNET_TRANSPORT_core_disconnect (struct GNUNET_TRANSPORT_CoreHandle *handle) | |||
922 | } | 922 | } |
923 | GNUNET_CONTAINER_multipeermap_destroy (handle->neighbours); | 923 | GNUNET_CONTAINER_multipeermap_destroy (handle->neighbours); |
924 | handle->neighbours = NULL; | 924 | handle->neighbours = NULL; |
925 | GNUNET_free_non_null (handle->handlers); | 925 | GNUNET_free (handle->handlers); |
926 | handle->handlers = NULL; | 926 | handle->handlers = NULL; |
927 | GNUNET_free (handle); | 927 | GNUNET_free (handle); |
928 | } | 928 | } |