Plug leaks, avahi_strdup() not necessary here

This commit is contained in:
Julien BLACHE 2011-07-09 11:48:31 +02:00
parent 87bd2b8ec4
commit 8310bc226d
1 changed files with 1 additions and 1 deletions

View File

@ -829,7 +829,7 @@ _create_services(void)
DPRINTF(E_DBG, L_MDNS, "Re-registering %s/%s\n", pentry->name, pentry->type);
ret = avahi_entry_group_add_service_strlst(mdns_group, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, 0,
avahi_strdup(pentry->name), avahi_strdup(pentry->type),
pentry->name, pentry->type,
NULL, NULL, pentry->port, pentry->txt);
if (ret < 0)
{