Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.
Permalink
Browse files
8257604: JNI_ArgumentPusherVaArg leaks valist
Reviewed-by: dcubed, coleenp
  • Loading branch information
tstuefe committed Dec 3, 2020
1 parent 4169d96 commit ae1eb286c6a2e76c3b38d68641208d4c01d4eef8
Showing 1 changed file with 4 additions and 1 deletion.
@@ -870,7 +870,6 @@ class JNI_ArgumentPusher : public SignatureIterator {


class JNI_ArgumentPusherVaArg : public JNI_ArgumentPusher {
protected:
va_list _ap;

void set_ap(va_list rap) {
@@ -906,6 +905,10 @@ class JNI_ArgumentPusherVaArg : public JNI_ArgumentPusher {
set_ap(rap);
}

~JNI_ArgumentPusherVaArg() {
va_end(_ap);
}

virtual void push_arguments_on(JavaCallArguments* arguments) {
_arguments = arguments;
do_parameters_on(this);

0 comments on commit ae1eb28

Please sign in to comment.