wifi_provisioning: Fix some memory leak issues by coverity static analyzer.
wifi_provisioning: Fix some memory leak issues by coverity static analyzer.

espressif/esp-idf,espressif/esp-idf,espressif/esp-idf,espressif/esp-idf