Changeset 745 for trunk/server/lib/util/talloc_stack.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/lib/util/talloc_stack.c
r429 r745 69 69 { 70 70 #if defined(PARANOID_MALLOC_CHECKER) 71 #ifdef malloc72 #undef malloc71 #ifdef calloc 72 #undef calloc 73 73 #endif 74 74 #endif 75 struct talloc_stackframe *ts = 76 (struct talloc_stackframe *)malloc(sizeof(struct talloc_stackframe));75 struct talloc_stackframe *ts = (struct talloc_stackframe *)calloc( 76 1, sizeof(struct talloc_stackframe)); 77 77 #if defined(PARANOID_MALLOC_CHECKER) 78 #define malloc(s) __ERROR_DONT_USE_MALLOC_DIRECTLY78 #define calloc(n, s) __ERROR_DONT_USE_MALLOC_DIRECTLY 79 79 #endif 80 80 … … 82 82 smb_panic("talloc_stackframe_init malloc failed"); 83 83 } 84 85 ZERO_STRUCTP(ts);86 84 87 85 SMB_THREAD_ONCE(&ts_initialized, talloc_stackframe_init, NULL); … … 103 101 break; 104 102 } 105 talloc_free(ts->talloc_stack[i]); 106 ts->talloc_stack[i] = NULL; 103 TALLOC_FREE(ts->talloc_stack[i]); 107 104 } 108 105
Note:
See TracChangeset
for help on using the changeset viewer.