Skip to content
Permalink
Browse files
Fix memleak in clientapi options
Patch obtained from AXIS2C-1669.
  • Loading branch information
bblough committed Dec 4, 2018
1 parent 4a1ab36 commit ad79d3571510127bb6d5213f76aa583aba4de2b4
Showing 1 changed file with 6 additions and 0 deletions.
@@ -515,7 +515,13 @@ axis2_options_set_property(
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;
}

0 comments on commit ad79d35

Please sign in to comment.