diff options
author | Michael Steinert <[email protected]> | 2015-03-29 11:25:00 -0500 |
---|---|---|
committer | Michael Steinert <[email protected]> | 2015-03-29 11:25:00 -0500 |
commit | 9c771166c9fb45cfa72779c356962f51022a6903 (patch) | |
tree | 5e71a54944eb9fbee940db70bc1c38d457a37d55 /transaction.go | |
parent | b380319c58ed6bf1023f8e58f78f593fa28c234b (diff) |
Add a test suite
Diffstat (limited to 'transaction.go')
-rw-r--r-- | transaction.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/transaction.go b/transaction.go index 404aca8..48568aa 100644 --- a/transaction.go +++ b/transaction.go @@ -106,7 +106,7 @@ func Start(service, user string, handler ConversationHandler) (*Transaction, err var u *C.char if len(user) != 0 { u = C.CString(user) - defer C.free(unsafe.Pointer(s)) + defer C.free(unsafe.Pointer(u)) } t.status = C.pam_start(s, u, t.conv.conv, &t.handle) if t.status != C.PAM_SUCCESS { |