projects
/
m6w6
/
libmemcached
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
d7de77d
)
Fix for test case to not leak memory.
author
Brian Aker
<brian@tangent.org>
Tue, 6 Jan 2009 22:40:14 +0000
(14:40 -0800)
committer
Brian Aker
<brian@tangent.org>
Tue, 6 Jan 2009 22:40:14 +0000
(14:40 -0800)
tests/function.c
patch
|
blob
|
history
diff --git
a/tests/function.c
b/tests/function.c
index 411c12b68880e073993ce6f0950d5ece59a8ad83..5164b828270295c7a723f108697e264eb3354fac 100644
(file)
--- a/
tests/function.c
+++ b/
tests/function.c
@@
-2176,12
+2176,17
@@
test_return user_supplied_bug20(memcached_st *memc)
status = memcached_mget(memc, &key, &key_len, 1);
assert(status == MEMCACHED_SUCCESS);
+ result= memcached_result_create(memc, &result_obj);
+ assert(result);
+
memcached_result_create(memc, &result_obj);
result= memcached_fetch_result(memc, &result_obj, &status);
assert(result);
assert(status == MEMCACHED_SUCCESS);
+ memcached_result_free(result);
+
return 0;
}