winpr-pipe: fixed memory leak in WaitNamedPipeA
authorBernhard Miklautz <bmiklautz@thinstuff.at>
Tue, 15 Oct 2013 11:09:13 +0000 (13:09 +0200)
committerBernhard Miklautz <bmiklautz@thinstuff.at>
Tue, 15 Oct 2013 11:09:13 +0000 (13:09 +0200)
winpr/libwinpr/pipe/pipe.c

index 583a373..5e3018f 100644 (file)
@@ -285,7 +285,7 @@ BOOL WaitNamedPipeA(LPCSTR lpNamedPipeName, DWORD nTimeOut)
                        break;
                }
        }
-
+       free(lpFilePath);
        return status;
 }