axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billblo...@apache.org
Subject svn commit: r1830643 - /axis/axis2/c/core/trunk/util/src/log.c
Date Tue, 01 May 2018 01:49:17 GMT
Author: billblough
Date: Tue May  1 01:49:17 2018
New Revision: 1830643

URL: http://svn.apache.org/viewvc?rev=1830643&view=rev
Log:
Free log_impl on error to avoid memory leak

JIRA: AXIS2C-1655


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

Modified: axis/axis2/c/core/trunk/util/src/log.c
URL: http://svn.apache.org/viewvc/axis/axis2/c/core/trunk/util/src/log.c?rev=1830643&r1=1830642&r2=1830643&view=diff
==============================================================================
--- axis/axis2/c/core/trunk/util/src/log.c (original)
+++ axis/axis2/c/core/trunk/util/src/log.c Tue May  1 01:49:17 2018
@@ -120,6 +120,7 @@ axutil_log_create(
     if(!log_impl->mutex)
     {
         fprintf(stderr, "cannot create log mutex \n");
+        AXIS2_FREE(allocator, log_impl);
         return NULL;
     }
 



Mime
View raw message