Skip to content

Commit 86108de

Browse files
committed
fixup: getHomeDir(username): deallocShared may undefined
1 parent a7ec853 commit 86108de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/std/private/osappdirs.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ when defined(unix): # XXX: suitable?
6060
break
6161

6262
bufsize = bufsize shl 1
63+
defer: deallocShared buf
6364
else:
6465
p = getpwnam(name_chars)
65-
66-
defer: deallocShared buf
66+
6767
if p.isNil:
6868
if nomem:
6969
raise newException(OutOfMemDefect, "")

0 commit comments

Comments
 (0)