• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit / 17293270440
88%

Build:
DEFAULT BRANCH: main
Ran 28 Aug 2025 11:13AM UTC
Jobs 1
Files 855
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

28 Aug 2025 10:15AM UTC coverage: 88.407% (-0.01%) from 88.418%
17293270440

push

github

web-flow
Fix: Memory leakage in `QkCountOps` creation. (#14930)

* Fix: Memory leakage in `QkCountOps` creation.
The following commits attempt to fix some memoery issues that the struct `QkOpCounts`. The `qk_opcounts_free` method would segfault if an empty object was passed. The function now checks whether the passed option includes a null pointer or an empty instance. The commits also change how the `data` attribute is generated without using `std::mem::forget`, but instead collection the `OpCount` vec into a boxed_slice and consuming it into a `Box`. Inspired by what was done for #14884.

* Docs: Add release note.

* Fix: Ironic memory leakage

* Fix c opcounts free suggestion (#7)

* Rename to _clear, free name

* rm dangling file

* use pointers

* ... forgot to register test

* fix `size_t`

* Fix: Missed some renaming

* add note on clearing opscount

* be explicit about loading Box<[OpCount]>

* fix merge artifact

* Apply suggestions from code review

Co-authored-by: Eli Arbel <46826214+eliarbel@users.noreply.github.com>

* goto

* happy miri happy life

* Fix merge artifacts

---------

Co-authored-by: Julien Gacon <gaconju@gmail.com>
Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
Co-authored-by: Eli Arbel <46826214+eliarbel@users.noreply.github.com>

23 of 23 new or added lines in 1 file covered. (100.0%)

16 existing lines in 3 files now uncovered.

90341 of 102188 relevant lines covered (88.41%)

486169.53 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
91.49
-0.26% crates/qasm2/src/lex.rs
6
97.56
-0.47% crates/qasm2/src/parse.rs
7
72.74
-0.29% crates/circuit/src/parameter/symbol_expr.rs
Jobs
ID Job ID Ran Files Coverage
1 17293270440.1 28 Aug 2025 11:13AM UTC 855
88.41
GitHub Action Run
Source Files on build 17293270440
  • Tree
  • List 855
  • Changed 5
  • Source Changed 1
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #17293270440
  • 28aa4bda on github
  • Prev Build on gh-readonly-queue/main/pr-14710-ce16e1ac5372b35413bcc8ea9d17520c6922d92a (#17290062644)
  • Next Build on main (#17300692278)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc