aboutsummaryrefslogtreecommitdiff
path: root/lib/memdebug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/memdebug.c')
-rw-r--r--lib/memdebug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/memdebug.c b/lib/memdebug.c
index 5fcddc4e1..e3ac8edf7 100644
--- a/lib/memdebug.c
+++ b/lib/memdebug.c
@@ -463,11 +463,11 @@ int curl_dbg_fclose(FILE *file, int line, const char *source)
DEBUGASSERT(file != NULL);
- res = fclose(file);
-
if(source)
curl_dbg_log("FILE %s:%d fclose(%p)\n",
- source, line, (void *)file);
+ source, line, (void *)file);
+
+ res = fclose(file);
return res;
}