1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-17 16:53:13 +00:00

Added memory ownership for buffer

This commit is contained in:
Bryan Roe
2020-05-07 18:19:14 -07:00
parent 0dc052319c
commit 7dc8ee4ef4
2 changed files with 4 additions and 34 deletions

View File

@@ -861,7 +861,7 @@ void ILibDuktape_net_server_IPC_readsink(ILibProcessPipe_Pipe sender, void *user
ILibDuktape_DuplexStream_Closed(winIPC->ds);
ILibProcessPipe_FreePipe(winIPC->mPipe);
winIPC->mPipe = NULL; winIPC->mPipeHandle = NULL;
if (winIPC->buffer != NULL) { free(winIPC->buffer); winIPC->buffer = NULL; }
if (winIPC->mServer != NULL)
{
// Server IPC, so we can create a new Instance, and listen for a connection