NLnetLabs / ldns

LDNS is a DNS library that facilitates DNS tool programming
https://nlnetlabs.nl/ldns
BSD 3-Clause "New" or "Revised" License
292 stars 98 forks source link

Free line memory even if zone file parsing fails #179

Closed bbczeuz closed 2 years ago

bbczeuz commented 2 years ago

Fixes #178. Frees line buffer if return code is nonzero.

Question: Fix here or fix in ldns_fget_token_l_st to not leave allocated mem if returning nonzero?