diff --git a/share/examples/output_mac.c b/share/examples/output_mac.c index 0bd362a..6f89e82 100644 --- a/share/examples/output_mac.c +++ b/share/examples/output_mac.c @@ -75,7 +75,7 @@ int main() } // Release the frame buffer. - malloc(buffer); + free(buffer); // Stop the stream. pclose(proc); diff --git a/share/examples/output_windows.c b/share/examples/output_windows.c index d3f2f47..338d544 100644 --- a/share/examples/output_windows.c +++ b/share/examples/output_windows.c @@ -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);