diff options
author | Lennart Poettering <lennart@poettering.net> | 2006-06-21 22:38:58 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2006-06-21 22:38:58 +0000 |
commit | 056e38c58720c6aab65db997ebc2b669d2465f12 (patch) | |
tree | 99bf4d725b86a0387d709261f24d200807388d07 /avahi-core | |
parent | 2f111835513ceecab837cb769f0d7b6b6c80f68b (diff) |
fix a mem leak
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1224 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-core')
-rw-r--r-- | avahi-core/avahi-test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/avahi-core/avahi-test.c b/avahi-core/avahi-test.c index f540cf4..061eec1 100644 --- a/avahi-core/avahi-test.c +++ b/avahi-core/avahi-test.c @@ -192,9 +192,11 @@ static void create_entries(int new_name) { r->data.cname.name = avahi_strdup("cocaine.local"); if (avahi_server_add(server, group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0, r) < 0) { + avahi_record_unref(r); avahi_log_error("Failed to add CNAME record"); goto fail; } + avahi_record_unref(r); avahi_s_entry_group_commit(group); return; |