Skip to content
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);

1 comment on commit ae1eb28

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on ae1eb28 Dec 3, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.