Fix CrashReport #1863 and duplicates

MIds should be a child for mem_ctx, thus imo this is not needed :) (or we need to have same pattern and free MIds explicitly in successful case too)