diff options
-rw-r--r-- | src/escrow/plugin_rest_escrow.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/escrow/plugin_rest_escrow.c b/src/escrow/plugin_rest_escrow.c index c5c4dbaf8..2c81c76c8 100644 --- a/src/escrow/plugin_rest_escrow.c +++ b/src/escrow/plugin_rest_escrow.c | |||
@@ -653,11 +653,10 @@ get_anchor_from_payload (struct RequestHandle *handle) | |||
653 | return NULL; | 653 | return NULL; |
654 | } | 654 | } |
655 | 655 | ||
656 | json_decref (json_data); | ||
657 | |||
658 | anchor = GNUNET_ESCROW_anchor_string_to_data (anchor_string); | 656 | anchor = GNUNET_ESCROW_anchor_string_to_data (anchor_string); |
659 | if (NULL == anchor) | 657 | if (NULL == anchor) |
660 | { | 658 | { |
659 | json_decref (json_data); | ||
661 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 660 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
662 | "Failed to parse anchor: %s.\n", anchor_string); | 661 | "Failed to parse anchor: %s.\n", anchor_string); |
663 | handle->response_code = MHD_HTTP_INTERNAL_SERVER_ERROR; | 662 | handle->response_code = MHD_HTTP_INTERNAL_SERVER_ERROR; |
@@ -666,6 +665,8 @@ get_anchor_from_payload (struct RequestHandle *handle) | |||
666 | return NULL; | 665 | return NULL; |
667 | } | 666 | } |
668 | 667 | ||
668 | json_decref (json_data); | ||
669 | |||
669 | return anchor; | 670 | return anchor; |
670 | } | 671 | } |
671 | 672 | ||