don't leak mem
This commit is contained in:
parent
f8714be406
commit
4a8ed01127
8 changed files with 16 additions and 0 deletions
|
|
@ -12,4 +12,5 @@ def accountinfo():
|
|||
|
||||
r = lib.cli_accountinfo(url, tk)
|
||||
result = ffi.string(r)
|
||||
lib.FreeCString(r)
|
||||
print(result)
|
||||
|
|
|
|||
|
|
@ -12,4 +12,5 @@ def clearaccount():
|
|||
|
||||
r = lib.cli_clearaccount(url, tk)
|
||||
result = ffi.string(r)
|
||||
lib.FreeCString(r)
|
||||
print(result)
|
||||
|
|
|
|||
|
|
@ -13,4 +13,5 @@ def discoverhs():
|
|||
|
||||
r = lib.cli_discoverhs(mxid)
|
||||
result = ffi.string(r)
|
||||
lib.FreeCString(r)
|
||||
print(result)
|
||||
|
|
|
|||
|
|
@ -12,4 +12,5 @@ def mktoken():
|
|||
|
||||
r = lib.cli_mkmxtoken(mxid, pw)
|
||||
result = ffi.string(r)
|
||||
lib.FreeCString(r)
|
||||
print(result)
|
||||
|
|
|
|||
|
|
@ -11,4 +11,5 @@ def serverinfo():
|
|||
|
||||
r = lib.cli_serverinfo(mxdomain)
|
||||
result = ffi.string(r)
|
||||
lib.FreeCString(r)
|
||||
print(result)
|
||||
|
|
|
|||
|
|
@ -12,4 +12,5 @@ def whoami():
|
|||
|
||||
r = lib.cli_whoami(url, tk)
|
||||
result = ffi.string(r)
|
||||
lib.FreeCString(r)
|
||||
print(result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue