Index: qtwin.cpp =================================================================== --- qtwin.cpp (Revision 44347) +++ qtwin.cpp (Arbeitskopie) @@ -1471,10 +1471,13 @@ fd = open(path, O_RDONLY); if (fd == -1) { + xfree(path); return -1; } if (fstat(fd, &st)) { + close(fd); + xfree(path); return -1; } *data = (uint8 *) xmalloc(st.st_size);