Skip to content

Commit f6f35dd

Browse files
committed
fix(ffi): remove duplicate proven_free_string export
1 parent 07cd25a commit f6f35dd

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

ffi/zig/src/main.zig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,6 @@ export fn proven_version_patch() u32 { return 0; }
8888
/// Return the FFI ABI version
8989
export fn proven_ffi_abi_version() u32 { return 1; }
9090

91-
/// Free a string allocated by the library
92-
export fn proven_free_string(ptr: ?[*]const u8) void {
93-
const p = ptr orelse return;
94-
// Find the null terminator to determine length for the allocator
95-
const len = std.mem.len(p);
96-
std.heap.c_allocator.free(p[0..len + 1]);
97-
}
98-
9991
//==============================================================================
10092
// Core Operations
10193
//==============================================================================

0 commit comments

Comments
 (0)