npa: Free allocated apps in match function

Thanks oss-fuzz

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=23977
This commit is contained in:
Jakub Jelen 2020-08-19 13:49:05 +02:00 committed by Jakub Jelen
parent d743a347d7
commit 94d67bed81
1 changed files with 4 additions and 0 deletions

View File

@ -176,6 +176,10 @@ static int npa_match_card(sc_card_t * card)
}
}
if (r == 0) {
sc_free_apps(card);
}
return r;
}