1
0
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:
Lennart Poettering 2015-12-10 13:28:33 +01:00
parent bea4c76fa0
commit 6728a58d10

View File

@ -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);