diff common-runopts.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 94dc11094e26
children 70f05f7d4d11
line wrap: on
line diff
--- a/common-runopts.c	Tue Mar 29 23:27:55 2022 +0800
+++ b/common-runopts.c	Tue Mar 29 23:47:30 2022 +0800
@@ -57,8 +57,7 @@
 	ret = DROPBEAR_SUCCESS;
 out:
 
-	buf_burn(buf);
-	buf_free(buf);
+	buf_burn_free(buf);
 	return ret;
 }