Fix first obj was not getting omap entries
Avoid free and malloc on every iteration by avoiding strdup