1
0
mirror of https://github.com/bitdefender/bddisasm.git synced 2024-12-22 22:18:09 +00:00

Fixed pull-request comments.

This commit is contained in:
Andrei KISARI 2020-08-13 11:13:55 +03:00
parent 4adf441efa
commit ad5fd2d94e

View File

@ -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;
@ -986,7 +986,7 @@ static char * _pybddisasm_get_contiguous_buffer(Py_buffer *view)
if (PyBuffer_ToContiguous(buffer, view, view->len, 'C') < 0)
{
PyErr_SetString(PyExc_ValueError, "PyBuffer_ToContiguous failed!");
free (buffer);
free(buffer);
return NULL;
}