[UTC][usb-host][Non-ACR][Set context to NULL after cleanup]
authorPaweł Szewczyk <p.szewczyk@samsung.com>
Thu, 20 Sep 2018 13:12:49 +0000 (15:12 +0200)
committerPaweł Szewczyk <p.szewczyk@samsung.com>
Thu, 20 Sep 2018 13:12:49 +0000 (15:12 +0200)
Change-Id: I60555c444c8176a20b0ad5f04c47467db3fcdcb8
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
src/utc/usb-host/utc-usb-host.c

index b6b7b67f8410a37050ff1bf1674c3d057d96330b..63e399a11b139feb5f00e5c4d301579e7348e917 100755 (executable)
@@ -3092,6 +3092,7 @@ void utc_usb_host_context_cleanup(void)
 {
        /* TODO handle errors */
        usb_host_destroy(ctx);
+       ctx = NULL;
 }
 
 /**