In the Linux kernel, the following vulnerability has been resolved: ext4: fix potential memory leak in ext4fcrecordregions() As krealloc may return NULL, in this case 'state->fcregions' may not be freed by krealloc, but 'state->fcregions' already set NULL. Then will lead to 'state->fcregions' memory leak.