commit | 5cd11d19dfb2d901e1f6b690ae504d3bf5f5ff69 | [log] [tgz] |
---|---|---|
author | Ben Wagner <bungeman@chromium.org> | Thu Dec 10 14:12:05 2020 -0500 |
committer | Ben Wagner <bungeman@chromium.org> | Mon Dec 14 12:34:21 2020 -0500 |
tree | 46cca276f4dcc74c57c87960a3d61653be9c88b6 | |
parent | d55eaa6b3148691f32ec19c5c36dfc8818a6385f [diff] |
Fix wild frees and leak of fs in test-conf. Reported by AddressSanitizer when running test-conf. The `query`, `result`, and `result_fs` were not initialized to NULL so could result in a wild free when first initialized. The `method` was also not initialized to NULL so comparisons could be made against random data if it had not yet been assigned. The outer `fs` was never destroyed, but is also not used, so remove.