diff zip.c @ 2346:0111c8344477

Fix some issues identified by asan/ubsan
author Michael Pavone <pavone@retrodev.com>
date Sat, 07 Oct 2023 18:04:35 -0700
parents 137dbd05ceab
children
line wrap: on
line diff
--- a/zip.c	Fri Oct 06 00:20:37 2023 -0700
+++ b/zip.c	Sat Oct 07 18:04:35 2023 -0700
@@ -106,6 +106,7 @@
 	z->entries = entries;
 	z->file = f;
 	z->num_entries = cur_entry - entries;
+	free(buf);
 	return z;
 	
 fail_entries: