mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-01 02:35:03 +00:00
rpc subsystem is now async/greenthreads friendly
This commit is contained in:
@@ -393,14 +393,12 @@ PHP_FUNCTION(uwsgi_rpc) {
|
||||
|
||||
// response must always be freed
|
||||
char *response = uwsgi_do_rpc(node, func, num_args - 2, argv, argvs, &size);
|
||||
|
||||
if (size > 0) {
|
||||
if (response) {
|
||||
// here we do not free varargs for performance reasons
|
||||
char *ret = estrndup(response, size);
|
||||
free(response);
|
||||
RETURN_STRING(ret, 0);
|
||||
}
|
||||
free(response);
|
||||
|
||||
clear:
|
||||
efree(varargs);
|
||||
|
||||
Reference in New Issue
Block a user