implemented psgi cleanup handlers, and fixed a leak in rpc call

This commit is contained in:
roberto@quantal64
2012-09-07 19:09:22 +02:00
parent f2e27f5154
commit cf480e499c
6 changed files with 81 additions and 10 deletions
+2
View File
@@ -498,6 +498,7 @@ PHP_FUNCTION(uwsgi_rpc) {
argvs[i] = Z_STRLEN_P(z_current_obj);
}
// response must always be freed
char *response = uwsgi_do_rpc(node, func, num_args - 2, argv, argvs, &size);
if (size > 0) {
@@ -506,6 +507,7 @@ PHP_FUNCTION(uwsgi_rpc) {
free(response);
RETURN_STRING(ret, 0);
}
free(response);
clear:
efree(varargs);