Fixed malloc() when it must be free() in examples.

This commit is contained in:
Gonzalo Exequiel Pedone 2021-06-22 14:54:33 -03:00
parent b0f83b8462
commit aa520435ad
No known key found for this signature in database
GPG key ID: B8B09E63E9B85BAF
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ int main()
}
// Release the frame buffer.
malloc(buffer);
free(buffer);
// Stop the stream.
pclose(proc);

View file

@ -125,7 +125,7 @@ int main()
}
// Release the frame buffer.
malloc(buffer);
free(buffer);
// Close the standard input and standard output handles.
CloseHandle(streamProc.stdinWritePipe);