fix segfault

This commit is contained in:
Marcello Stanisci 2018-12-21 20:58:43 +01:00
parent 67818b31fb
commit c420c340f2
No known key found for this signature in database
GPG Key ID: 8D526861953F4C0F

View File

@ -66,7 +66,8 @@ serialize_keys_run (void *cls,
if (NULL == sks->keys) if (NULL == sks->keys)
TALER_TESTING_interpreter_fail (is); 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); TALER_EXCHANGE_disconnect (is->exchange);
is->exchange = NULL; is->exchange = NULL;
TALER_TESTING_interpreter_next (is); TALER_TESTING_interpreter_next (is);