Memory leak with dev_add_pack()