Skip to content

Commit

Permalink
Lock/unlock around free for Avahi (Issue #302)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Nov 9, 2023
1 parent 3ac4dfd commit b05d62c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pappl/device-network.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,11 @@ pappl_dnssd_free(_pappl_dns_sd_dev_t *d)// I - Device

#elif defined(HAVE_AVAHI)
if (d->ref)
{
_papplDNSSDLock();
avahi_record_browser_free(d->ref);
_papplDNSSDUnlock();
}
#endif // HAVE_MDNSRESPONDER

free(d);
Expand Down

0 comments on commit b05d62c

Please sign in to comment.