axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r1713044 - /axis/axis2/c/core/trunk/util/src/allocator.c
Date Fri, 06 Nov 2015 22:05:50 GMT
Author: nadiramra
Date: Fri Nov  6 22:05:50 2015
New Revision: 1713044

URL: http://svn.apache.org/viewvc?rev=1713044&view=rev
Log:
check pointer before free'ing

Modified:
    axis/axis2/c/core/trunk/util/src/allocator.c

Modified: axis/axis2/c/core/trunk/util/src/allocator.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/src/allocator.c?rev=1713044&r1=1713043&r2=1713044&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/src/allocator.c (original)
+++ axis/axis2/c/core/trunk/util/src/allocator.c Fri Nov  6 22:05:50 2015
@@ -111,7 +111,8 @@ axutil_allocator_free_impl(
     axutil_allocator_t * allocator,
     void *ptr)
 {
-    free(ptr);
+	if (ptr)
+        free(ptr);
 }
 
 AXIS2_EXTERN void AXIS2_CALL



Mime
View raw message