mirror of
https://github.com/rizinorg/rizin.git
synced 2026-10-11 22:19:51 +00:00
fix memory leaks in info() in librz/bin/p/bin_pyc.c (#6809)
This commit is contained in:
@@ -101,6 +101,7 @@ static RzBinInfo *info(RzBinFile *arch) {
|
||||
bool error = false;
|
||||
bool is_before_py_36 = magic_int_within(ctx->version.magic, 0x9494, 0x0d16, &error);
|
||||
if (error) {
|
||||
free(ret);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user