Skip to content

Static code analysis _047 (The resource was not freed) #71

@PawelModrzejewski

Description

@PawelModrzejewski

Short summary (details in attached file):

    EtherTimestamper *timestamper = new LinuxTimestamperGeneric();
    (...)
        if (pthread_sigmask(SIG_BLOCK, &set, NULL) != 0) {

Event 110:  Taking true branch.  pthread_sigmask(...) != 0 evaluates to true.
            perror("pthread_sigmask()");
            GPTP_LOG_UNREGISTER();
            return -1;
	
Event 111:  timestamper has gone out of scope and no longer references the resource of interest

gptp_047.txt

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