pintest: fixed resource leak

This commit is contained in:
Frank Morgner 2015-04-29 23:22:29 +02:00 committed by Viktor Tarasov
parent efbd4068af
commit b0a708b0bb

View File

@ -42,6 +42,7 @@ static int enum_pins(struct sc_pkcs15_object ***ret)
}
if (0 > sc_pkcs15_get_objects(p15card, SC_PKCS15_TYPE_AUTH_PIN, objs, n)) {
fprintf(stderr, "Error enumerating PIN codes\n");
free(objs);
return 1;
}
for (i = 0; i < n; i++) {