Martin Ettl <ettl DOT martin AT gmx DOT de>: Fix various resource and memory leaks
[reactos.git] / reactos / base / applications / tsclient / rdesktop / uiports / qtwin.cpp
index 718ba2d..a23727e 100644 (file)
@@ -1475,6 +1475,8 @@ int load_licence(uint8 ** data)
   }
   if (fstat(fd, &st))
   {
+    close(fd);
+    xfree(path);
     return -1;
   }
   *data = (uint8 *) xmalloc(st.st_size);