]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/utils: fix memory leak since 58def8bb7
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 3 Dec 2018 15:43:13 +0000 (16:43 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 3 Dec 2018 15:56:46 +0000 (16:56 +0100)
commit021cdc24ea5bd5743f78a9d287deafd15bd479b3
tree8025581024ffdf0b3f5ff7d15d62f75a74b63c03
parent8f3df91978a8ff4bd3cba5a65b74fed84ee225b7
lib/utils: fix memory leak since 58def8bb7

The problem was the mm_malloc() typo :-/ so allocation was going through
malloc() instead of the packet's allocator (always memory pool ATM).
I added mm_free() for better correctness anyway.
lib/utils.c