sbin/hammer2: Fix minor strdup(3) leak
commit295a3ae3433b84e3b2d935d7fb1e2df54bf0618e
authorTomohiro Kusumi <tkusumi@netbsd.org>
Fri, 17 Mar 2023 07:07:07 +0000 (17 00:07 -0700)
committerTomohiro Kusumi <tkusumi@netbsd.org>
Fri, 17 Mar 2023 07:12:04 +0000 (17 00:12 -0700)
tree89c3a348b422fc56c58132d7d5f8d432e126e309
parent2dc244c93cda3a8c2356811437febfa65777a16c
sbin/hammer2: Fix minor strdup(3) leak

strchr(3) moves p while in the loop,
so p is usually NULL when free(3) is called.
sbin/hammer2/ondisk.c