Remove superfluous function_add_ref() call