Skip to content

[Bug]Leak in verify.c#pgmoneta_sha512_verification #643

Closed

Description

@jchrys
#ifdef HAVE_FREEBSD
         clock_gettime(CLOCK_MONOTONIC_FAST, &end_t);
#else
         clock_gettime(CLOCK_MONOTONIC_RAW, &end_t);
#endif
// verify.c L434
         elapsed = pgmoneta_get_timestamp_string(start_t, end_t, &total_seconds);
         pgmoneta_log_info("Verification: %s/%s (Elapsed: %s)", config->common.servers[server].name, backups[i]->label, elapsed);

elapsed allocated but never freed.

Activity

  1. added
    bug
    on May 26, 2025
  2. jchrys commented on May 26, 2025

    @jchrys
    ContributorAuthor

    I will writre a PR

  3. jesperpedersen commented on May 26, 2025

    @jesperpedersen
    Member
  4. added 4 commits that reference this issue on May 26, 2025
  5. added a commit that references this issue on May 26, 2025
  6. added a commit that references this issue on May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions