---
 mingw-w64-crt/stdio/mingw_wvfscanf.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/mingw-w64-crt/stdio/mingw_wvfscanf.c 
b/mingw-w64-crt/stdio/mingw_wvfscanf.c
index 41bdc68..045aba7 100644
--- a/mingw-w64-crt/stdio/mingw_wvfscanf.c
+++ b/mingw-w64-crt/stdio/mingw_wvfscanf.c
@@ -213,6 +213,11 @@ release_ptrs (struct gcollect **pt, wchar_t **wbuf)
   struct gcollect *pf;
   size_t cnt;
 
+  if (wbuf)
+    {
+      free (*wbuf);
+      *wbuf = NULL;
+    }
   if (!pt || (pf = *pt) == NULL)
     return;
   while (pf != NULL)
@@ -227,11 +232,6 @@ release_ptrs (struct gcollect **pt, wchar_t **wbuf)
       free (pf_sv);
     }
   *pt = NULL;
-  if (wbuf)
-    {
-      free (*wbuf);
-      *wbuf = NULL;
-    }
 }
 
 static int
-- 
2.7.0


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to