speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Corrected some memory leacs in src/tests/run_test.c


From: Chris Brannon
Subject: [PATCH] Corrected some memory leacs in src/tests/run_test.c
Date: Tue, 16 Feb 2010 17:14:14 -0600

Rui Batista wrote:
> You're right, please disregard this patch. What do you think of passing
> the buffer to the send_data function instead of creating it there? At
> least it is just the main function that have control of memory
> alocations.

Yes, that would work, since the buffer is fixed-size, anyway.
There's nothing wrong with doing the allocation in send_data, either,
as long as you're aware of the pitfalls that I mentioned.

-- Chris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]