diff options
| author | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2026-04-10 10:19:05 +0000 |
|---|---|---|
| committer | Mariusz Zaborski <oshogbo@FreeBSD.org> | 2026-04-10 10:20:27 +0000 |
| commit | 9f1be4bfebd08b249877267a1634c249c9f6d221 (patch) | |
| tree | f93fe844224e5f819e81b1be1ca85c0579264c6d | |
| parent | 4da93b9a8a5411f7386e79053d9c46df29627594 (diff) | |
cap_dns: plug a memory leak
| -rw-r--r-- | lib/libcasper/services/cap_dns/cap_dns.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcasper/services/cap_dns/cap_dns.c b/lib/libcasper/services/cap_dns/cap_dns.c index 8681f0baef40..8e660b197e3a 100644 --- a/lib/libcasper/services/cap_dns/cap_dns.c +++ b/lib/libcasper/services/cap_dns/cap_dns.c @@ -267,7 +267,7 @@ cap_getaddrinfo(cap_channel_t *chan, const char *hostname, const char *servname, } nvlist_destroy(nvl); if (curai == NULL && nvlai != NULL) { - if (firstai == NULL) + if (firstai != NULL) freeaddrinfo(firstai); return (EAI_MEMORY); } |
