"Daniel P. Berrange" <berra...@redhat.com> writes: > On Tue, Nov 17, 2015 at 04:25:22PM +0100, Markus Armbruster wrote: >> I apologize for the lateness of my review. > >> > +void object_property_iter_free(ObjectPropertyIterator *iter) >> > +{ >> > + if (!iter) { >> > + return; >> > + } >> > + g_free(iter); >> >> g_free(NULL) is perfectly safe; please drop the conditional. > > The next patch in the series has to free some fields in 'iter' > so the check for NULL upfront is not redundant.
I'd add the conditional when it's actually needed, not least to avoid comments from picky reviewers like myself ;) Anyway, not worth a respin by itself. However, I'd very much prefer the iterators to follow precedence in the tree.