diff 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
line wrap: on
line diff
--- a/common-session.c	Tue Mar 29 23:27:55 2022 +0800
+++ b/common-session.c	Tue Mar 29 23:47:30 2022 +0800
@@ -285,8 +285,7 @@
 	if (!*buf) {
 		return;
 	}
-	buf_burn(*buf);
-	buf_free(*buf);
+	buf_burn_free(*buf);
 	*buf = NULL;
 }