|
Description
|
In fab_prep_basic_erpt(), we nvlist_dup() new_detector, but we
a) continue to use 'new_detector' even if nvlist_dup fails
b) ignore the results of nvlist_add_*(), all of which can fail
c) nvlist_dup() 'new_detector', but never free it
All of this yields a pathologically broken function. While the
first two are only error paths, the third one causes fmd to leak
memory over time.
|