Thanks to visit codestin.com
Credit goes to github.com

Skip to content

incorrect use of DeleteLocalRef in Android code #10

@GrahamAsher

Description

@GrahamAsher

The variable header is passed to DeleteLocalRef here:

(*env)->DeleteLocalRef(env, header);

and in the amalgamation:

naett/naett.c

Line 1495 in e44a499

(*env)->DeleteLocalRef(env, header);

The statement is incorrect, because header is of an invalid type

KVLink* header = req->options.headers;

I believe that it did not trigger an exception because header is always null when the incorrect statement is executed; but nevertheless it should be deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions