In spdk_nvmf_subsystem_add_ns_ext(), ns->ptpl_file is set to strdup(), which may return NULL. We should deal with it. Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com> Change-Id: If95102fe9d6d789b8ba9e846c4d7f4e22e48a93c Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8305 Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>