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:
Carter LaSalle 2025-02-11 06:11:29 -08:00 committed by GitHub
parent 52c0f78d4c
commit 78094e2fe4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) })
}