|
Ran
|
Jobs
1
|
Files
827
|
Run time
2min
|
Badge
README BADGES
|
push
github
Fix: Memory leakage in `QkCountOps` creation. (backport #14930) (#14959) * 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> (cherry picked from commit 28aa4bdaa) # Conflicts: # test/c/test_elide_permutations.c # test/c/test_optimize_1q_sequences.c # test/c/test_sabre_layout.c # test/c/test_split_2q_unitaries.c * rm merge artifacts --------- Co-authored-by: Raynel Sanchez <87539502+raynelfss@users.noreply.github.com> Co-authored-by: Julien Gacon <jules.gacon@googlemail.com>
23 of 23 new or added lines in 1 file covered. (100.0%)
22 existing lines in 2 files now uncovered.80030 of 91215 relevant lines covered (87.74%)
512948.91 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 4 |
92.53 |
0.52% | crates/qasm2/src/lex.rs |
| 18 |
96.62 |
-1.41% | crates/qasm2/src/parse.rs |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 17435556986.1 | 827 |
87.74 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line |
|---|