Implement Registration Token Administrator API #43
Loading…
Reference in a new issue
No description provided.
Delete branch "pull-37"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This pull request fully implements and documents all of the registration token administrator API endpoints.
NOTE: There is a memory leak when listing all of the registration tokens. Debug this before merging.
ClosesSupersedes #37.Closes #26.
This pull request is based off of #37, which addresses #26. This pull makes a number of improvements to the logic, organization, and behavior of the API endpoints.
@ -0,0 +109,4 @@
RegTokenFree(info);
/* TODO: The JsonValue returned here gets leaked. */
ArrayAdd(tokensarray, JsonValueObject(jsoninfo));
Here is where the leak is occurring. As you can see, I have added a TODO comment.
I have yet to figure out why this is happening, because it looks like it should work. If anyone wants to take a stab at it (@lda, would you?), you're more than welcome to.
Update: I think the leak is actually coming from a bug in
j2s
generated code.The leak is caused by Telodendria/Cytoplasm#17.
WIP: Implement Registration Token Administrator APIto Implement Registration Token Administrator API