Azure IoT common library

Fork of azure_c_shared_utility by Azure IoT

Revision:
25:8507bf644fdf
Parent:
21:b92006c5b9ff
--- a/gballoc.c	Thu Apr 06 14:12:06 2017 -0700
+++ b/gballoc.c	Fri Apr 21 14:51:10 2017 -0700
@@ -350,10 +350,10 @@
     }
     else
     {
-    /* Codes_SRS_GBALLOC_01_010: [gballoc_getMaximumMemoryUsed shall return the maximum amount of total memory used recorded since the module initialization.] */
+        /* Codes_SRS_GBALLOC_01_010: [gballoc_getMaximumMemoryUsed shall return the maximum amount of total memory used recorded since the module initialization.] */
         result = maxSize;
-        Unlock(gballocThreadSafeLock);
-}
+        (void)Unlock(gballocThreadSafeLock);
+    }
 
     return result;
 }
@@ -377,9 +377,9 @@
     }
     else
     {
-    /*Codes_SRS_GBALLOC_02_001: [gballoc_getCurrentMemoryUsed shall return the currently used memory size.] */
+        /*Codes_SRS_GBALLOC_02_001: [gballoc_getCurrentMemoryUsed shall return the currently used memory size.] */
         result = totalSize;
-        Unlock(gballocThreadSafeLock);
+        (void)Unlock(gballocThreadSafeLock);
     }
 
     return result;