mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-12 12:09:03 +08:00
fix(html-transformer): Update free_string function parameter type (#1163)
Correct the parameter type to use libc::c_char for better type consistency
This commit is contained in:
parent
52c0f78d4c
commit
78094e2fe4
@ -375,6 +375,6 @@ pub unsafe extern "C" fn get_inner_json(html: *const libc::c_char) -> *mut libc:
|
||||
/// # Safety
|
||||
/// ptr must be a non-freed string pointer returned by Rust code.
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn free_string(ptr: *mut i8) {
|
||||
pub unsafe extern "C" fn free_string(ptr: *mut libc::c_char) {
|
||||
drop(unsafe { CString::from_raw(ptr) })
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user