summaryrefslogtreecommitdiff
path: root/src/os_posix/os_stdio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_posix/os_stdio.c')
-rw-r--r--src/os_posix/os_stdio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/os_posix/os_stdio.c b/src/os_posix/os_stdio.c
index 7ab107eda1e..65a0f40a659 100644
--- a/src/os_posix/os_stdio.c
+++ b/src/os_posix/os_stdio.c
@@ -46,8 +46,7 @@ __wt_fopen(WT_SESSION_IMPL *session,
if (*fpp == NULL)
ret = __wt_errno();
- if (pathbuf != NULL)
- __wt_free(session, pathbuf);
+ __wt_free(session, pathbuf);
if (ret == 0)
return (0);