Skip to content

Commit

Permalink
fix(consensus): free more cstrings (#6056)
Browse files Browse the repository at this point in the history
Signed-off-by: Joan Fontanals Martinez <[email protected]>
  • Loading branch information
JoanFM authored Sep 26, 2023
1 parent 195d376 commit b168e4c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jina/serve/consensus/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ func run(self *C.PyObject, args *C.PyObject, kwargs *C.PyObject) *C.PyObject {
SnapshotThreshold = C.uint64_t(raftDefaultConfig.SnapshotThreshold)
LeaderLeaseTimeout = C.int(raftDefaultConfig.LeaderLeaseTimeout / time.Millisecond)
LogLevel = C.CString(raftDefaultConfig.LogLevel)
defer C.free(unsafe.Pointer(LogLevel))

NoSnapshotRestoreOnStart = C.bool(raftDefaultConfig.NoSnapshotRestoreOnStart)

if C.PyArg_ParseTuple_run(args,
Expand Down

0 comments on commit b168e4c

Please sign in to comment.