mirror of
https://github.com/bitdefender/bddisasm.git
synced 2025-06-25 01:48:47 +00:00
Fixed pull-request comments.
This commit is contained in:
parent
4adf441efa
commit
ad5fd2d94e
@ -967,7 +967,7 @@ static uint8_t _pybddisasm_py_stack_to_disasm(uint8_t stack)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static char * _pybddisasm_get_contiguous_buffer(Py_buffer *view)
|
static char *_pybddisasm_get_contiguous_buffer(Py_buffer *view)
|
||||||
{
|
{
|
||||||
char *buffer = NULL;
|
char *buffer = NULL;
|
||||||
|
|
||||||
@ -986,7 +986,7 @@ static char * _pybddisasm_get_contiguous_buffer(Py_buffer *view)
|
|||||||
if (PyBuffer_ToContiguous(buffer, view, view->len, 'C') < 0)
|
if (PyBuffer_ToContiguous(buffer, view, view->len, 'C') < 0)
|
||||||
{
|
{
|
||||||
PyErr_SetString(PyExc_ValueError, "PyBuffer_ToContiguous failed!");
|
PyErr_SetString(PyExc_ValueError, "PyBuffer_ToContiguous failed!");
|
||||||
free (buffer);
|
free(buffer);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user