diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-24 11:07:33 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-24 11:08:10 -0400 |
commit | d597be5bc1ee0e76117037b7d9a52c52fd4531ad (patch) | |
tree | a8384fcb4cabde1da989b8c3e3b114b8114dfcc0 /tests/common/empty_error.sh | |
parent | 30e309de41aaca259c4d0a200daa42ba74cbc5a5 (diff) | |
download | bfs-d597be5bc1ee0e76117037b7d9a52c52fd4531ad.tar.xz |
eval: Plug memory leak if bfs_opendir() fails
Diffstat (limited to 'tests/common/empty_error.sh')
-rw-r--r-- | tests/common/empty_error.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/common/empty_error.sh b/tests/common/empty_error.sh new file mode 100644 index 0000000..7c8049c --- /dev/null +++ b/tests/common/empty_error.sh @@ -0,0 +1,7 @@ +cd "$TEST" + +"$XTOUCH" -p foo/ bar/ baz qux +chmod -r foo baz +defer chmod +r foo baz + +! bfs_diff . -empty |