ptp: Fix possible memory leak in ptp_clock_register()