mirror of
https://github.com/systemd/systemd.git
synced 2024-12-25 01:34:28 +03:00
resolved: no need to check for NULL explicitly before invoking dns_packet_unref()
This commit is contained in:
parent
bea4c76fa0
commit
6728a58d10
@ -171,8 +171,7 @@ DnsPacket *dns_packet_unref(DnsPacket *p) {
|
||||
|
||||
assert(p->n_ref > 0);
|
||||
|
||||
if (p->more)
|
||||
dns_packet_unref(p->more);
|
||||
dns_packet_unref(p->more);
|
||||
|
||||
if (p->n_ref == 1)
|
||||
dns_packet_free(p);
|
||||
|
Loading…
Reference in New Issue
Block a user