char buffer[MEMCACHED_DEFAULT_COMMAND_SIZE];
unsigned int server_key;
- WATCHPOINT_ASSERT(!(value == NULL && value_length > 0));
- WATCHPOINT_ASSERT(!(value && value_length == 0));
-
unlikely (key_length == 0)
return MEMCACHED_NO_KEY_PROVIDED;
assert(rc == MEMCACHED_SUCCESS);
assert(string_length == strlen(READ_THROUGH_VALUE));
assert(!strcmp(READ_THROUGH_VALUE, string));
+ free(string);
string= memcached_get(memc, key, strlen(key),
&string_length, &flags, &rc);
assert(rc == MEMCACHED_SUCCESS);
assert(string_length == strlen(READ_THROUGH_VALUE));
assert(!strcmp(READ_THROUGH_VALUE, string));
+ free(string);
return 0;
}
&string_length, &flags, &rc);
assert(rc == MEMCACHED_SUCCESS);
- if (current_length > 0)
- assert(string);
assert(string_length == current_length);
assert(!memcmp(string, value, string_length));