diff --git a/libc/stdio/vcscanf.c b/libc/stdio/vcscanf.c index 49f2bed59..5bec3efd8 100644 --- a/libc/stdio/vcscanf.c +++ b/libc/stdio/vcscanf.c @@ -393,5 +393,6 @@ Done: if (items == -1) free(entry->ptr); free(entry); } + if (buf) free(buf); return items; }