diff --git a/commands/of_property.c b/commands/of_property.c index d0b923f..31e9b71 100644 --- a/commands/of_property.c +++ b/commands/of_property.c @@ -270,9 +270,8 @@ free(pp->value); pp->value_const = NULL; - /* limit property data to the actual size */ if (len) - pp->value = xrealloc(data, len); + pp->value = xmemdup(data, len); else pp->value = NULL;