Skip to content

Use of free instead of delete in bitcoinrpc.cpp #822

@xanatos

Description

@xanatos

bitcoinrpc.cpp, line 1564. parg is freed through free (free(parg);), but it was allocated with new (line 1475 int* pnSleepTime = new int(params[1].get_int());). It is correct in line 1440 (delete (int*)parg;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions