Skip to content

Commit

Permalink
mdns: free our on register_cb fail
Browse files Browse the repository at this point in the history
  • Loading branch information
pkova committed Sep 5, 2023
1 parent b3c381a commit fd96138
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/vere/mdns.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ void mdns_init(uint16_t port, char* our, mdns_cb* cb, void* context)

if (err != kDNSServiceErr_NoError) {
u3l_log("mdns: service register error %i", err);
c3_free(our);
DNSServiceRefDeallocate(sref);
return;
}
Expand Down

0 comments on commit fd96138

Please sign in to comment.