dill_http_attach allocates memory with obj = malloc(), however the logic was reversed in dill_http_hclose such that allocated memory would not be freed (or worse still, if dill_http_attach_mem was called to attach then on dill_http_hclose free would be called referencing memory that had not been allocated).
dill_http_attach allocates memory with obj = malloc(), however the logic was reversed in dill_http_hclose such that allocated memory would not be freed (or worse still, if dill_http_attach_mem was called to attach then on dill_http_hclose free would be called referencing memory that had not been allocated).