projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
MEMCACHED_BEHAVIOR_USER_DATA work. This allows a client application to store
[m6w6/libmemcached]
/
lib
/
memcached_result.c
diff --git
a/lib/memcached_result.c
b/lib/memcached_result.c
index 49f44b23397e353bc64e42b6f70521274991a3bc..89de40301552ff891ca908b481068edd822f6692 100644
(file)
--- a/
lib/memcached_result.c
+++ b/
lib/memcached_result.c
@@
-34,8
+34,13
@@
memcached_result_st *memcached_result_create(memcached_st *memc,
void memcached_result_free(memcached_result_st *ptr)
{
+ if (ptr == NULL)
+ return;
+
memcached_string_free(&ptr->value);
if (ptr->is_allocated == MEMCACHED_ALLOCATED)
free(ptr);
+ else
+ ptr->is_allocated= MEMCACHED_USED;
}