Plug a memory leak by simplifying kv_free(). By checking the type and
authorclaudio <claudio@openbsd.org>
Sat, 30 May 2015 09:47:25 +0000 (09:47 +0000)
committerclaudio <claudio@openbsd.org>
Sat, 30 May 2015 09:47:25 +0000 (09:47 +0000)
commit230b3145d0536ff3839d85c618345ad5717e0191
tree65ac0d6324e9ff2b1adb636d5db567912ed26595
parent88ed009067195a8ffc1cc3dc4d5036dc04fbc27e
Plug a memory leak by simplifying kv_free(). By checking the type and
returning early the key and value memory got leaked on HTTP header kvs
since their type was never set.
OK benno@
usr.sbin/relayd/relayd.c