Skip to content

Commit 54fc453

Browse files
committed
- Fix mem. leak
1 parent d8da372 commit 54fc453

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/xmlrpc/xmlrpc-epi-php.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,8 @@ zval* decode_request_worker(char *xml_in, int xml_in_len, char *encoding_in, zva
795795
Z_TYPE_P(method_name_out) = IS_STRING;
796796
Z_STRVAL_P(method_name_out) = estrdup(method_name);
797797
Z_STRLEN_P(method_name_out) = strlen(Z_STRVAL_P(method_name_out));
798-
} else {
798+
} else if (retval) {
799+
zval_ptr_dtor(&retval);
799800
retval = NULL;
800801
}
801802
}

0 commit comments

Comments
 (0)