Don't free null strings.
When running in client-only mode, this string will never be allocated, but the code tried to free it ...
This commit is contained in:
parent
cce67665f7
commit
8e391e8bfb
@ -816,8 +816,8 @@ int
|
|||||||
main (int argc,
|
main (int argc,
|
||||||
char *const *argv)
|
char *const *argv)
|
||||||
{
|
{
|
||||||
char *exchange_url;
|
char *exchange_url = NULL;
|
||||||
char *auditor_url;
|
char *auditor_url = NULL;
|
||||||
struct GNUNET_CONFIGURATION_Handle *cfg;
|
struct GNUNET_CONFIGURATION_Handle *cfg;
|
||||||
struct GNUNET_GETOPT_CommandLineOption options[] = {
|
struct GNUNET_GETOPT_CommandLineOption options[] = {
|
||||||
GNUNET_GETOPT_option_mandatory
|
GNUNET_GETOPT_option_mandatory
|
||||||
@ -1031,8 +1031,8 @@ main (int argc,
|
|||||||
NULL,
|
NULL,
|
||||||
cfg_filename,
|
cfg_filename,
|
||||||
exchange_url);
|
exchange_url);
|
||||||
GNUNET_free (exchange_url);
|
GNUNET_free_non_null (exchange_url);
|
||||||
GNUNET_free (auditor_url);
|
GNUNET_free_non_null (auditor_url);
|
||||||
duration = GNUNET_TIME_absolute_get_duration (start_time);
|
duration = GNUNET_TIME_absolute_get_duration (start_time);
|
||||||
if (GNUNET_OK == result)
|
if (GNUNET_OK == result)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user