[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
- [PATCH] Corrected some memory leacs in src/tests/run_test.c, Rui Batista, 2010/02/16
- [PATCH] Corrected some memory leacs in src/tests/run_test.c, Chris Brannon, 2010/02/16
- [PATCH] Corrected some memory leacs in src/tests/run_test.c, Rui Batista, 2010/02/16
- [PATCH] Corrected some memory leacs in src/tests/run_test.c, Rui Batista, 2010/02/16
- [PATCH] Corrected some memory leacs in src/tests/run_test.c,
Chris Brannon <=
- [PATCH] Corrected some memory leacs in src/tests/run_test.c, Rui Batista, 2010/02/16
- memory allocation clarification, jose vilmar estacio de souza, 2010/02/17
- memory allocation clarification, Luke Yelavich, 2010/02/17
- memory allocation clarification, jose vilmar estacio de souza, 2010/02/18
- memory allocation clarification, Chris Brannon, 2010/02/19
- memory allocation clarification, jose vilmar estacio de souza, 2010/02/20
- memory allocation clarification, Chris Brannon, 2010/02/20
- memory allocation clarification, jose vilmar estacio de souza, 2010/02/20
- memory allocation clarification, Chris Brannon, 2010/02/22