Commit 523c55d5 authored by Julian Sparber's avatar Julian Sparber

[fix] free the right memory when avahi service disapeares, close #25

parent 0312fdad
...@@ -156,7 +156,7 @@ client_callback (AvahiClient *c, ...@@ -156,7 +156,7 @@ client_callback (AvahiClient *c,
fprintf(stderr, fprintf(stderr,
"Server connection failure: %s\n", "Server connection failure: %s\n",
avahi_strerror(avahi_client_errno(c))); avahi_strerror(avahi_client_errno(c)));
teleport_browser_avahi_shutdown(); avahi_client_free(client);
} }
} }
......
...@@ -174,8 +174,8 @@ static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UN ...@@ -174,8 +174,8 @@ static void client_callback(AvahiClient *c, AvahiClientState state, AVAHI_GCC_UN
case AVAHI_CLIENT_FAILURE: case AVAHI_CLIENT_FAILURE:
fprintf(stderr, "Client failure: %s\n", avahi_strerror(avahi_client_errno(c))); fprintf(stderr, "Client failure: %s\n", avahi_strerror(avahi_client_errno(c)));
//avahi_simple_poll_quit(simple_poll); avahi_client_free(client);
teleport_publish_shutdown(); avahi_free(name);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment