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