Skip to content

Commit f8f080d

Browse files
author
Andras Fekete
committed
Don't nag about leaked resources
1 parent 1dd6888 commit f8f080d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/asn1/asn1.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,11 @@ int main(int argc, char* argv[])
470470
if (ret != 0) {
471471
fprintf(stderr, "%s\n", wc_GetErrorString(ret));
472472
}
473+
474+
if (fp != stdin) {
475+
fclose(fp);
476+
fp = stdin;
477+
}
473478
return (ret == 0) ? 0 : 1;
474479
}
475480

0 commit comments

Comments
 (0)