Merge pull request #345 from philipWendland/upstr-pkcs15-init

pkcs15-init: fix memory corruption
This commit is contained in:
Frank Morgner 2014-12-19 17:38:56 +01:00
commit 2a966734f4
1 changed files with 2 additions and 2 deletions

View File

@ -459,7 +459,7 @@ main(int argc, char **argv)
return 1;
}
for (n = 0; n < sizeof pins; n++) {
for (n = 0; n < sizeof(pins)/sizeof(pins[0]); n++) {
pins[n] = NULL;
}
@ -582,7 +582,7 @@ main(int argc, char **argv)
}
}
for (n = 0; n < sizeof pins; n++) {
for (n = 0; n < sizeof(pins)/sizeof(pins[0]); n++) {
free(pins[n]);
}