aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_http_common.c')
-rw-r--r--src/transport/plugin_transport_http_common.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/transport/plugin_transport_http_common.c b/src/transport/plugin_transport_http_common.c
index 2bcab42b4..d81d6db9c 100644
--- a/src/transport/plugin_transport_http_common.c
+++ b/src/transport/plugin_transport_http_common.c
@@ -34,10 +34,10 @@ http_clean_splitted (struct SplittedHTTPAddress *spa)
34{ 34{
35 if (NULL != spa) 35 if (NULL != spa)
36 { 36 {
37 GNUNET_free_non_null (spa->protocol); 37 GNUNET_free (spa->protocol);
38 GNUNET_free_non_null (spa->host); 38 GNUNET_free (spa->host);
39 GNUNET_free_non_null (spa->path); 39 GNUNET_free (spa->path);
40 GNUNET_free_non_null (spa); 40 GNUNET_free (spa);
41 } 41 }
42} 42}
43 43
@@ -494,7 +494,7 @@ http_common_plugin_address_pretty_printer (void *cls, const char *type,
494 asc (asc_cls, ret, (NULL == ret) ? GNUNET_SYSERR : GNUNET_OK); 494 asc (asc_cls, ret, (NULL == ret) ? GNUNET_SYSERR : GNUNET_OK);
495 asc (asc_cls, NULL, GNUNET_OK); 495 asc (asc_cls, NULL, GNUNET_OK);
496 http_clean_splitted (saddr); 496 http_clean_splitted (saddr);
497 GNUNET_free_non_null (sock_addr); 497 GNUNET_free (sock_addr);
498 return; 498 return;
499 } 499 }
500 if ((GNUNET_YES == numeric) && 500 if ((GNUNET_YES == numeric) &&
@@ -510,7 +510,7 @@ http_common_plugin_address_pretty_printer (void *cls, const char *type,
510 goto handle_error; 510 goto handle_error;
511 } 511 }
512 /* Wait for resolver callback */ 512 /* Wait for resolver callback */
513 GNUNET_free_non_null (sock_addr); 513 GNUNET_free (sock_addr);
514 return; 514 return;
515 } 515 }
516 if ((GNUNET_NO == numeric) && 516 if ((GNUNET_NO == numeric) &&
@@ -531,7 +531,7 @@ http_common_plugin_address_pretty_printer (void *cls, const char *type,
531 goto handle_error; 531 goto handle_error;
532 } 532 }
533 /* Wait for resolver callback */ 533 /* Wait for resolver callback */
534 GNUNET_free_non_null (sock_addr); 534 GNUNET_free (sock_addr);
535 return; 535 return;
536 } 536 }
537 if ((GNUNET_NO == numeric) && 537 if ((GNUNET_NO == numeric) &&
@@ -541,7 +541,7 @@ http_common_plugin_address_pretty_printer (void *cls, const char *type,
541 ret = http_common_plugin_address_to_string (type, address, addrlen); 541 ret = http_common_plugin_address_to_string (type, address, addrlen);
542 asc (asc_cls, ret, (NULL == ret) ? GNUNET_SYSERR : GNUNET_OK); 542 asc (asc_cls, ret, (NULL == ret) ? GNUNET_SYSERR : GNUNET_OK);
543 asc (asc_cls, NULL, GNUNET_OK); 543 asc (asc_cls, NULL, GNUNET_OK);
544 GNUNET_free_non_null (sock_addr); 544 GNUNET_free (sock_addr);
545 http_clean_splitted (saddr); 545 http_clean_splitted (saddr);
546 return; 546 return;
547 } 547 }
@@ -553,7 +553,7 @@ handle_error:
553 /* Report error */ 553 /* Report error */
554 asc (asc_cls, NULL, GNUNET_SYSERR); 554 asc (asc_cls, NULL, GNUNET_SYSERR);
555 asc (asc_cls, NULL, GNUNET_OK); 555 asc (asc_cls, NULL, GNUNET_OK);
556 GNUNET_free_non_null (sock_addr); 556 GNUNET_free (sock_addr);
557 if (NULL != saddr) 557 if (NULL != saddr)
558 http_clean_splitted (saddr); 558 http_clean_splitted (saddr);
559} 559}