mirror of
https://github.com/rizinorg/rizin.git
synced 2026-10-12 02:21:57 +00:00
fix memory leaks in luajit_header_parser()(#6849)
This commit is contained in:
@@ -54,6 +54,13 @@ RZ_IPI RzBinInfo *luajit_header_parser(RzBinFile *bf, LuaJITBinInfo *bin_info, i
|
||||
int end_len;
|
||||
end_len = rz_buf_uleb128_at(r_buffer, LUAJIT_FILE_LEN_START, &name_len);
|
||||
if (check_malformed_ULEB128(end_len)) {
|
||||
free(info->file);
|
||||
free(info->type);
|
||||
free(info->bclass);
|
||||
free(info->rclass);
|
||||
free(info->arch);
|
||||
free(info->cpu);
|
||||
free(info->compiler);
|
||||
RZ_FREE(info);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user