# HG changeset patch # User Richard Laager # Date 1200282020 0 # Node ID 1879516dae08e234375972821f29ca34047474be # Parent 97c40983e5f7238bd28b353ba3e4e8f8da53bbd8 Remove a useless NULL check before a g_free(). diff -r 97c40983e5f7 -r 1879516dae08 libpurple/protocols/novell/nmfield.c --- a/libpurple/protocols/novell/nmfield.c Mon Jan 14 03:33:21 2008 +0000 +++ b/libpurple/protocols/novell/nmfield.c Mon Jan 14 03:40:20 2008 +0000 @@ -164,9 +164,7 @@ case NMFIELD_TYPE_BINARY: case NMFIELD_TYPE_UTF8: case NMFIELD_TYPE_DN: - if (field->ptr_value != NULL) { - g_free(field->ptr_value); - } + g_free(field->ptr_value); break; case NMFIELD_TYPE_ARRAY: