On 9/18/19 11:40 PM, Honggang LI wrote:
diff --git a/srp_daemon/srp_daemon.c b/srp_daemon/srp_daemon.c index 337b21c7..f0bcf923 100644 --- a/srp_daemon/srp_daemon.c +++ b/srp_daemon/srp_daemon.c @@ -727,6 +727,7 @@ end: if (ret) { free(*ibport); free(*ibdev); + *ibdev = NULL; } free(class_dev_path);
Reviewed-by: Bart Van Assche <bvanassche@xxxxxxx>