pkcs15-init: fix memory corruption

This commit is contained in:
Philip Wendland 2014-12-19 16:52:14 +01:00
parent 1197fbea36
commit aa7886f36d
No known key found for this signature in database
GPG Key ID: 4424DC9CFB68DAAF
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]);
}