Skip to content

Commit 2754e8d

Browse files
committed
Revert "remove C.free inducing abort"
This reverts commit 2e5b0c6.
1 parent 7369715 commit 2754e8d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ibmmq/mqiMQCNO.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ func copyCNOfromC(mqcno *C.MQCNO, gocno *MQCNO) {
188188
// Set memory to 0 for area that held a password
189189
if mqcno.SecurityParmsPtr.CSPPasswordPtr != nil {
190190
C.memset((unsafe.Pointer)(mqcno.SecurityParmsPtr.CSPPasswordPtr), 0, C.size_t(mqcno.SecurityParmsPtr.CSPPasswordLength))
191+
C.free(unsafe.Pointer(mqcno.SecurityParmsPtr.CSPPasswordPtr))
191192
}
192193
C.free(unsafe.Pointer(mqcno.SecurityParmsPtr))
193194
}

0 commit comments

Comments
 (0)