oc_cred: fix leak

Signed-off-by: Kishen Maloor <kishen.maloor@intel.com>
4 jobs for 145-update-readme-files-found-in-port-android-and-swig in 4 minutes and 47 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
failed #1664
Android_build

00:04:46

passed #1662
Linux_Secured_Test

00:03:09

passed #1663
Linux_Unsecured_Test

00:02:10

passed #1665
whitespace_and_doxygen

00:00:52

 
Name Stage Failure
failed
Android_build Build
  inflating: android-sdk-linux/tools/support/typos-tr.txt  
inflating: android-sdk-linux/tools/support/typos-pt.txt
inflating: android-sdk-linux/tools/support/typos-it.txt
inflating: android-sdk-linux/tools/support/typos-nb.txt
inflating: android-sdk-linux/tools/support/typos-hu.txt
$ echo y | android-sdk-linux/tools/bin/sdkmanager "ndk-bundle" >/dev/null
Warning: File /root/.android/repositories.cfg could not be loaded.
Warning: An error occurred during installation: /tmp/PackageOperation01/unzip/android-ndk-r21/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/28/libc.a -> /builds/iotivity/iotivity-lite/android-sdk-linux/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/lib/aarch64-linux-android/28/libc.a: No space left on device.
ERROR: Job failed: exit code 1