mirror of
https://codeberg.org/scip/diceware.git
synced 2025-12-17 10:50:57 +01:00
try with valgrind
This commit is contained in:
@@ -12,9 +12,10 @@ steps:
|
|||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
commands:
|
commands:
|
||||||
- apk update
|
- apk update
|
||||||
- apk add --no-cache bash build-base words-en gdb
|
- apk add --no-cache bash build-base words-en gdb valgrind
|
||||||
- make
|
- make
|
||||||
- gdb -batch -ex "run" -ex "bt" --args dicepwgen
|
- valgrind --leak-check=full --show-reachable=yes ./dicepwgen
|
||||||
|
#- gdb -batch -ex "run" -ex "bt" --args dicepwgen
|
||||||
#- ./dicepwgen -y | grep -E '[a-z]*%'
|
#- ./dicepwgen -y | grep -E '[a-z]*%'
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -178,8 +178,4 @@ void getwords(char *dictfile, int count) {
|
|||||||
for (i = 0; i < 66666; i++)
|
for (i = 0; i < 66666; i++)
|
||||||
if (words[i] != NULL)
|
if (words[i] != NULL)
|
||||||
free(words[i]);
|
free(words[i]);
|
||||||
|
|
||||||
if (words != NULL) {
|
|
||||||
free(words);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user