Skip to content

Commit

Permalink
pextlib1.0: fix resource leak when file is not script
Browse files Browse the repository at this point in the history
  • Loading branch information
l2dy committed Feb 11, 2022
1 parent dd795bd commit f1391cf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pextlib1.0/sip_copy_proc.c
Expand Up @@ -216,6 +216,8 @@ static copy_needed_return_t copy_needed(const char *path, char *const argv[],
} else {
fclose(f);
}
} else {
fclose(f);
}

// check whether the binary has SF_RESTRICTED and isn't SUID/SGID
Expand Down

0 comments on commit f1391cf

Please sign in to comment.