boostorg / boostorg/program_options
klocwork analysis finding: memory leak
- Lingua principale
- C++
- Stelle
- 136
- Fork
- 117
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Problem Description:
44 int parse_cmd_options(int argc, char **argv) {
45 po::options_description desc{"Options"};
46 desc.add_options()
47 ("help", "Convolution Options:")
48 ("mb,n", po::value(&mb), "Batch size")
klocwork report: Memory leak. Dynamic memory stored in 'po::value ( &sw)' allocated through function 'value' at line 48 is lost at line 46
The boost version we used is 1.69
Any comments for this issue?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Start at parse_cmd_options and the options_description setup around line 48, then reproduce or inspect the Klocwork report with Boost 1.69. Done means determining whether po::value(&sw) is a real leak and documenting or correcting the issue with supporting analysis.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100