fix leaks

This commit is contained in:
Christian Grothoff 2016-06-11 17:11:38 +02:00
parent 6fb30ce468
commit f4b013b3d4
3 changed files with 11 additions and 0 deletions

View File

@ -523,6 +523,7 @@ exchange_keys_update_signkeys ()
{ {
fprintf (stderr, fprintf (stderr,
"Failed to create signing key directory\n"); "Failed to create signing key directory\n");
GNUNET_free (signkey_dir);
return GNUNET_SYSERR; return GNUNET_SYSERR;
} }
@ -530,6 +531,7 @@ exchange_keys_update_signkeys ()
signkey_duration, signkey_duration,
GNUNET_TIME_UNIT_ZERO /* no overlap for signing keys */, GNUNET_TIME_UNIT_ZERO /* no overlap for signing keys */,
&anchor); &anchor);
GNUNET_free (signkey_dir);
while (anchor.abs_value_us < lookahead_sign_stamp.abs_value_us) while (anchor.abs_value_us < lookahead_sign_stamp.abs_value_us)
{ {

View File

@ -757,6 +757,7 @@ run_aggregation (void *cls)
"Preparing wire transfer of %s to %s\n", "Preparing wire transfer of %s to %s\n",
amount_s, amount_s,
TALER_B2S (&au->merchant_pub)); TALER_B2S (&au->merchant_pub));
GNUNET_free (amount_s);
} }
au->wp = wp; au->wp = wp;
au->ph = wp->wire_plugin->prepare_wire_transfer (wp->wire_plugin->cls, au->ph = wp->wire_plugin->prepare_wire_transfer (wp->wire_plugin->cls,
@ -1095,7 +1096,11 @@ main (int argc,
gettext_noop ("background process that aggregates and executes wire transfers to merchants"), gettext_noop ("background process that aggregates and executes wire transfers to merchants"),
options, options,
&run, NULL)) &run, NULL))
{
GNUNET_free ((void*) argv);
return 1; return 1;
}
GNUNET_free ((void*) argv);
return global_ret; return global_ret;
} }

View File

@ -84,7 +84,11 @@ TALER_config_get_denom (const struct GNUNET_CONFIGURATION_Handle *cfg,
return GNUNET_NO; return GNUNET_NO;
if (GNUNET_OK != TALER_string_to_amount (str, if (GNUNET_OK != TALER_string_to_amount (str,
denom)) denom))
{
GNUNET_free (str);
return GNUNET_SYSERR; return GNUNET_SYSERR;
}
GNUNET_free (str);
return GNUNET_OK; return GNUNET_OK;
} }