tolerate NULL cleanup functions in commands in batches
This commit is contained in:
parent
6db4bdbe6e
commit
3760d43097
@ -97,8 +97,9 @@ batch_cleanup (void *cls,
|
|||||||
for (unsigned int i = 0;
|
for (unsigned int i = 0;
|
||||||
NULL != bs->batch[i].label;
|
NULL != bs->batch[i].label;
|
||||||
i++)
|
i++)
|
||||||
bs->batch[i].cleanup (bs->batch[i].cls,
|
if (NULL != bs->batch[i].cleanup)
|
||||||
&bs->batch[i]);
|
bs->batch[i].cleanup (bs->batch[i].cls,
|
||||||
|
&bs->batch[i]);
|
||||||
GNUNET_free (bs->batch);
|
GNUNET_free (bs->batch);
|
||||||
GNUNET_free (bs);
|
GNUNET_free (bs);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user