r13117: the caller may reference the winsdb_addr struct,
authorStefan Metzmacher <metze@samba.org>
Tue, 24 Jan 2006 19:37:44 +0000 (19:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:51:27 +0000 (13:51 -0500)
and as a winsdb_record has a short lifetime, it's no problem
to not free unused addresses directly

metze

source/nbt_server/wins/winsdb.c

index f294705e55d5c6bdb312958d56d8c52917a63f6f..60c2ab0e4fed2d8b273770867df049cbdce05e36 100644 (file)
@@ -520,7 +520,6 @@ void winsdb_addr_list_remove(struct winsdb_addr **addresses, const char *address
                        break;
                }
        }
-       if (addresses[i]) talloc_free(addresses[i]);
 
        for (; addresses[i]; i++) {
                addresses[i] = addresses[i+1];