diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-02-20 15:23:55 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-02-20 15:23:55 +0000 |
commit | 7b915095afe17e549132c1e28628b4cb26683f5e (patch) | |
tree | 1d7adb60668ad9686f725ac5c3f7bf657a13ef3b | |
parent | 0aa3030787e0bcb18df07667544b78e3aa7fffe9 (diff) |
fix memory leak when freeing static host structs
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1148 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r-- | avahi-daemon/static-hosts.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/avahi-daemon/static-hosts.c b/avahi-daemon/static-hosts.c index 23d5384..ae8961b 100644 --- a/avahi-daemon/static-hosts.c +++ b/avahi-daemon/static-hosts.c @@ -221,10 +221,6 @@ void static_hosts_load(int in_chroot) { void static_hosts_free_all (void) { - StaticHost *h; - - for (h = hosts; h; h = hosts->hosts_next) - { - static_host_free (h); - } + while(hosts) + static_host_free(hosts); } |