comparison gensignkey.c @ 1912:8b4274d34fe8

Use buf_burn_free() instead of two calls
author Matt Johnston <matt@ucc.asn.au>
date Tue, 29 Mar 2022 23:47:30 +0800
parents c795520269f9
children
comparison
equal deleted inserted replaced
1911:ced53051e200 1912:8b4274d34fe8
179 with zero-byte hostkey files if the power goes off */ 179 with zero-byte hostkey files if the power goes off */
180 fsync_parent_dir(filename); 180 fsync_parent_dir(filename);
181 181
182 out: 182 out:
183 if (buf) { 183 if (buf) {
184 buf_burn(buf); 184 buf_burn_free(buf);
185 buf_free(buf);
186 } 185 }
187 186
188 if (fn_temp) { 187 if (fn_temp) {
189 unlink(fn_temp); 188 unlink(fn_temp);
190 m_free(fn_temp); 189 m_free(fn_temp);