comparison common-session.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 62e4baa059c3
children
comparison
equal deleted inserted replaced
1911:ced53051e200 1912:8b4274d34fe8
283 283
284 static void cleanup_buf(buffer **buf) { 284 static void cleanup_buf(buffer **buf) {
285 if (!*buf) { 285 if (!*buf) {
286 return; 286 return;
287 } 287 }
288 buf_burn(*buf); 288 buf_burn_free(*buf);
289 buf_free(*buf);
290 *buf = NULL; 289 *buf = NULL;
291 } 290 }
292 291
293 /* clean up a session on exit */ 292 /* clean up a session on exit */
294 void session_cleanup() { 293 void session_cleanup() {