export release_buffer

This commit is contained in:
Dmitriy Ryajov 2024-01-19 14:51:11 -06:00
parent 451a0fde90
commit e59ea184fa
No known key found for this signature in database
GPG Key ID: DA8C680CE7C657A4

View File

@ -149,6 +149,7 @@ pub unsafe extern "C" fn release_circom_compat(ctx_ptr: &mut *mut CircomCompatCt
}
}
#[no_mangle]
pub unsafe extern "C" fn release_buffer(buff_ptr: &mut *mut Buffer) {
if !buff_ptr.is_null() {
let buff = &mut Box::from_raw(*buff_ptr);