mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-14 04:05:58 +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
|
/// # Safety
|
||||||
/// ptr must be a non-freed string pointer returned by Rust code.
|
/// ptr must be a non-freed string pointer returned by Rust code.
|
||||||
#[no_mangle]
|
#[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) })
|
drop(unsafe { CString::from_raw(ptr) })
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user