Skip to content

Commit

Permalink
Merge pull request #110 from opentechinstitute/co-call-memleak
Browse files Browse the repository at this point in the history
free response list from co_call
  • Loading branch information
jheretic committed Aug 22, 2014
2 parents 346c0e1 + d1df4c6 commit 326a582
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/commotion.c
Expand Up @@ -227,11 +227,9 @@ co_call(co_obj_t *connection, co_obj_t **response, const char *method, const siz
}
else SENTINEL("Failed to receive data.");

co_obj_free(m);
if(params != request) co_obj_free(params);
return retval;

error:
if (rlist)
co_obj_free(rlist);
co_obj_free(m);
if(params != request) co_obj_free(params);
return retval;
Expand Down

0 comments on commit 326a582

Please sign in to comment.