wlan: clean WDI global variables in shutdown method

WDI global variable used for feature capability exchange are freed in
WDI stop; the same variables should also be freed in WDI shutdown. SSR
re-initialize path was incorrect because of this.

Change-Id: I5efd5609e8d818492139baaf8c740536cdc735a4
CRs-Fixed: 395209
diff --git a/CORE/WDI/CP/src/wlan_qct_wdi.c b/CORE/WDI/CP/src/wlan_qct_wdi.c
index 58c42c1..2e2516e 100644
--- a/CORE/WDI/CP/src/wlan_qct_wdi.c
+++ b/CORE/WDI/CP/src/wlan_qct_wdi.c
@@ -1642,7 +1642,9 @@
             "%s: Failed to delete mutex %d",  __FUNCTION__, wptStatus);
       WDI_ASSERT(0);
    }
-
+   /* Free the global variables */
+   wpalMemoryFree(gpHostWlanFeatCaps);
+   wpalMemoryFree(gpFwWlanFeatCaps);
    /*Clear control block.  note that this will clear the "magic"
      which will inhibit all asynchronous callbacks*/
    WDI_CleanCB(&gWDICb);