diff options
Diffstat (limited to 'louloulibs/network/resolver.cpp')
-rw-r--r-- | louloulibs/network/resolver.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/louloulibs/network/resolver.cpp b/louloulibs/network/resolver.cpp index 3558800..db7fb32 100644 --- a/louloulibs/network/resolver.cpp +++ b/louloulibs/network/resolver.cpp @@ -114,6 +114,7 @@ void Resolver::start_resolving(const std::string& hostname, const std::string& p Resolver* resolver = static_cast<Resolver*>(data); resolver->on_hostname6_resolved(result); resolver->after_resolved(); + std::free(result); }; auto hostname4_resolved = [](dns_ctx*, dns_rr_a4* result, void* data) @@ -121,6 +122,7 @@ void Resolver::start_resolving(const std::string& hostname, const std::string& p Resolver* resolver = static_cast<Resolver*>(data); resolver->on_hostname4_resolved(result); resolver->after_resolved(); + std::free(result); }; DNSHandler::watch(); |