Commit 23738e1
committed
CID fixes for memkind info code
This PR fixes CID 1645329 (USE_AFTER_FREE).
Coverty complained that there are scenarios where the string used within the code could have been already freed (probably in some multi-threaded settings). This PR should hopefully fix this.
Signed-off-by: Edgar Gabriel <edgar.gabriel@amd.com>1 parent f67e216 commit 23738e1
1 file changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
547 | | - | |
548 | | - | |
| 547 | + | |
| 548 | + | |
549 | 549 | | |
550 | 550 | | |
551 | 551 | | |
| |||
569 | 569 | | |
570 | 570 | | |
571 | 571 | | |
572 | | - | |
573 | 572 | | |
574 | 573 | | |
575 | 574 | | |
| |||
578 | 577 | | |
579 | 578 | | |
580 | 579 | | |
581 | | - | |
582 | 580 | | |
583 | 581 | | |
584 | 582 | | |
585 | 583 | | |
586 | 584 | | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
587 | 592 | | |
588 | 593 | | |
589 | 594 | | |
| |||
0 commit comments