This commit is contained in:
Dianne Skoll
2025-09-10 17:54:26 -04:00
parent fe2b34da68
commit 53a12de2f9

View File

@@ -2624,7 +2624,7 @@ static int FMbindex(func_info *info)
(void) mbstowcs(haystack, ARGSTR(0), haylen+1);
needlelen = mbstowcs(NULL, ARGSTR(1), INT_MAX);
if (needlelen == (size_t) -1) {
(free (void *) haystack);
free( (void *) haystack);
return E_BAD_MB_SEQ;
}
needle = calloc(needlelen+1, sizeof(wchar_t));