diff --git a/callback.go b/callback.go index 84612b4..0c518fa 100644 --- a/callback.go +++ b/callback.go @@ -346,7 +346,6 @@ func callbackRetText(ctx *C.sqlite3_context, v reflect.Value) error { return fmt.Errorf("cannot convert %s to TEXT", v.Type()) } cstr := C.CString(v.Interface().(string)) - defer C.free(unsafe.Pointer(cstr)) C._sqlite3_result_text(ctx, cstr) return nil }