diff --git a/librz/bin/format/pyc/marshal.c b/librz/bin/format/pyc/marshal.c index c7e6f03913e..2727ed82012 100644 --- a/librz/bin/format/pyc/marshal.c +++ b/librz/bin/format/pyc/marshal.c @@ -667,6 +667,7 @@ static pyc_object *get_ascii_object_generic(RzBinPycObj *pyc, RzBuffer *buffer, ret->data = get_bytes(buffer, size); if (!ret->data) { RZ_FREE(ret); + return NULL; } if (!add_string_to_cache(pyc, addr, ret->data, size, size, RZ_STRING_ENC_8BIT)) {