Fix memleak in clientapi options
Patch obtained from AXIS2C-1669.
diff --git a/src/core/clientapi/options.c b/src/core/clientapi/options.c
index b5b538b..1eb9a98 100644
--- a/src/core/clientapi/options.c
+++ b/src/core/clientapi/options.c
@@ -515,7 +515,13 @@
const axis2_char_t * property_key,
const void *property)
{
+ /* free old property */
+ axutil_property_t *old_property =
+ (axutil_property_t *)axutil_hash_get(
+ options->properties, property_key, AXIS2_HASH_KEY_STRING);
axutil_hash_set(options->properties, property_key, AXIS2_HASH_KEY_STRING, property);
+ if (old_property)
+ axutil_property_free(old_property, env);
return AXIS2_SUCCESS;
}