[or-cvs] r16780: {tor} Fix a malloc that should have been a tor_malloc  (tor/trunk/src/or)
    nickm at seul.org 
    nickm at seul.org
       
    Fri Sep  5 20:53:39 UTC 2008
    
    
  
Author: nickm
Date: 2008-09-05 16:53:39 -0400 (Fri, 05 Sep 2008)
New Revision: 16780
Modified:
   tor/trunk/src/or/policies.c
Log:
Fix a malloc that should have been a tor_malloc
Modified: tor/trunk/src/or/policies.c
===================================================================
--- tor/trunk/src/or/policies.c	2008-09-05 20:52:15 UTC (rev 16779)
+++ tor/trunk/src/or/policies.c	2008-09-05 20:53:39 UTC (rev 16780)
@@ -1175,7 +1175,7 @@
 
   final_size = strlen(prefix)+1+shorter_len+1;
   tor_assert(final_size <= MAX_EXITPOLICY_SUMMARY_LEN+1);
-  result = malloc(final_size);
+  result = tor_malloc(final_size);
   tor_snprintf(result, final_size, "%s %s", prefix, shorter_str);
 
 cleanup:
    
    
More information about the tor-commits
mailing list