From c420c340f2b5c9c3b4fe8fa94cc4258ae0d85517 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Fri, 21 Dec 2018 20:58:43 +0100 Subject: [PATCH] fix segfault --- src/exchange-lib/testing_api_cmd_serialize_keys.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/exchange-lib/testing_api_cmd_serialize_keys.c b/src/exchange-lib/testing_api_cmd_serialize_keys.c index c63147a7e..852c42116 100644 --- a/src/exchange-lib/testing_api_cmd_serialize_keys.c +++ b/src/exchange-lib/testing_api_cmd_serialize_keys.c @@ -66,7 +66,8 @@ serialize_keys_run (void *cls, if (NULL == sks->keys) TALER_TESTING_interpreter_fail (is); - sks->exchange_url = TALER_EXCHANGE_get_base_url (is->exchange); + sks->exchange_url = GNUNET_strdup + (TALER_EXCHANGE_get_base_url (is->exchange)); TALER_EXCHANGE_disconnect (is->exchange); is->exchange = NULL; TALER_TESTING_interpreter_next (is);