Searched hist:e94ea7bc22ad2500b53be44765c7acaba8f392a0 (Results 1 – 1 of 1) sorted by relevance
/haiku/src/add-ons/kernel/network/protocols/udp/ |
H A D | udp.cpp | e94ea7bc22ad2500b53be44765c7acaba8f392a0 Wed Dec 15 17:40:59 UTC 2021 Augustin Cavalier <waddlesplash@gmail.com> UDP: Fix double-reference of DomainSupport.
PulkoMandy in cb3199681eb2ed53850595d374e4989dbd62a3fa changed the _GetDomainSupport functions to always Ref() the the object. However, that means in the case of the second _GetDomainSupport function, which is implemented in terms of the first, we should not call Ref() as this will create a double-reference.
Fixes a memory leak.
Change-Id: Ib82b2dadc0c8cc8d8f95efcffeb2430ac602a0a9 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4791 Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
|