opentechinstitute / commotiond

The system management daemon for the Commotion Wireless Project.
https://commotionwireless.net
GNU Affero General Public License v3.0
26 stars 21 forks source link

Fix freeing of response objects in client API #92

Closed jheretic closed 10 years ago

jheretic commented 10 years ago

This commit simple adds an hattach() call to the co_free() function in the client API. This explicitly detaches the object that is being freed from the memory pool. Otherwise, it will not be freed with this call and will not be until the API is shut down.

To test, there should not be any obvious change of functionality from this simple fix. You should just verify that interactive client commands still work properly, and that the client does not bomb out (the commotion CLI client uses this API to free responses when in interactive mode).

gradyoti commented 10 years ago

CLI works. You done good like.