Skip to content

Commit

Permalink
Free the service entry being removed
Browse files Browse the repository at this point in the history
Fixes a small leak
  • Loading branch information
rojer committed Jul 10, 2021
1 parent bc5b859 commit 4a003fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/mongoose/mgos_dns_sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ bool mgos_dns_sd_remove_service_instance(const char *name, const char *proto,
if (e == NULL) return false;
SLIST_REMOVE(&s_instances, e, mgos_dns_sd_service_entry, next);
// TODO: Send a good-bye packet for the associated records.
mgos_dns_sd_service_entry_free(e);
return true;
}

Expand Down

0 comments on commit 4a003fe

Please sign in to comment.