Fix prevent issue
[apps/native/widget/widget.git] / dynamicbox / src / dynamicbox.c
index 9afde2b..3bb52af 100644 (file)
@@ -469,6 +469,7 @@ PUBLIC int dynamicbox_desc_set_size(struct dynamicbox_desc *handle, const char *
     snprintf(buffer, sizeof(buffer), "%dx%d", w, h);
     block->data = strdup(buffer);
     if (!block->data) {
+       free(block->id);
        free(block->part);
        free(block->type);
        free(block);