-fix memory leak

This commit is contained in:
Christian Grothoff 2022-03-19 08:26:40 +01:00
parent badfde8962
commit f0a95037ef
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -454,6 +454,7 @@ request_version (void *cls)
&hr, &hr,
NULL, NULL,
TALER_AUDITOR_VC_PROTOCOL_ERROR); TALER_AUDITOR_VC_PROTOCOL_ERROR);
GNUNET_free (vr);
return; return;
} }
GNUNET_log (GNUNET_ERROR_TYPE_INFO, GNUNET_log (GNUNET_ERROR_TYPE_INFO,
@ -467,6 +468,8 @@ request_version (void *cls)
auditor->retry_task = GNUNET_SCHEDULER_add_delayed (auditor->retry_delay, auditor->retry_task = GNUNET_SCHEDULER_add_delayed (auditor->retry_delay,
&request_version, &request_version,
auditor); auditor);
GNUNET_free (vr->url);
GNUNET_free (vr);
return; return;
} }
GNUNET_break (CURLE_OK == GNUNET_break (CURLE_OK ==