Fix memsize calculation

This commit is contained in:
Kitaiti Makoto 2026-04-20 05:51:16 +09:00
parent 9ca31b6981
commit 3ee810047e
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ static size_t
ruby_whisper_memsize(const void *p)
{
const ruby_whisper *rw = (const ruby_whisper *)p;
size_t size = sizeof(rw);
size_t size = sizeof(*rw);
if (!rw) {
return 0;
}