mirror of
https://github.com/emqx/neuron.git
synced 2026-10-23 10:22:32 +08:00
Merge pull request #1643 from eeff/eeff/dev
fix: utarray_steal dangling pointer
This commit is contained in:
@@ -48,6 +48,7 @@ static inline void *utarray_steal(UT_array *array)
|
||||
void *data = array->d;
|
||||
array->i = 0;
|
||||
array->n = 0;
|
||||
array->d = NULL;
|
||||
return data;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user