set CHANGE small optimization of ly_set_dup()
diff --git a/src/set.c b/src/set.c
index b858491..3b7f078 100644
--- a/src/set.c
+++ b/src/set.c
@@ -102,7 +102,7 @@
     new = malloc(sizeof *new);
     LY_CHECK_ERR_RET(!new, LOGMEM(NULL), NULL);
     new->count = set->count;
-    new->size = set->size;
+    new->size = set->count; /* optimize the size */
     new->objs = malloc(new->size * sizeof *(new->objs));
     LY_CHECK_ERR_RET(!new->objs, LOGMEM(NULL); free(new), NULL);
     if (duplicator) {