Hi, I'm conducting a research on Rust security and found a bug in this crate:
The raw pointer emit is not freed after use, and utils::to_str function also does not take ownership of this pointer, which may cause a memory leak.
|
let emit = unsafe { ucl_object_emit(obj.as_ref().obj, Into::into(*self)) }; |
|
utils::to_str(emit) |