Please enable JavaScript to use RhodeCode Enterprise
##// END OF EJS Templates
Yuya Nishihara
- Thu, 14 Jun 2018 11:09:54
Show More
contrib/chg/chg.c
0
+4
-1
@@
-220,7
+220,10
b' static void execcmdserver(const struct c'
220
220
221
const char ** argv = mallocx ( sizeof ( char * ) * argsize );
221
const char ** argv = mallocx ( sizeof ( char * ) * argsize );
222
memcpy ( argv , baseargv , sizeof ( baseargv ));
222
memcpy ( argv , baseargv , sizeof ( baseargv ));
223
memcpy ( argv + baseargvsize , opts -> args , sizeof ( char * ) * opts -> argsize );
223
if ( opts -> args ) {
224
size_t size = sizeof ( char * ) * opts -> argsize ;
225
memcpy ( argv + baseargvsize , opts -> args , size );
226
}
224
argv [ argsize - 1 ] = NULL ;
227
argv [ argsize - 1 ] = NULL ;
225
228
226
if ( putenv ( "CHGINTERNALMARK=" ) != 0 )
229
if ( putenv ( "CHGINTERNALMARK=" ) != 0 )
mercurial/cext/bdiff.c
0
+2
-6
@@
-155,12
+155,8
b' cleanup:'
155
PyEval_RestoreThread ( _save );
155
PyEval_RestoreThread ( _save );
156
PyBuffer_Release ( & ba );
156
PyBuffer_Release ( & ba );
157
PyBuffer_Release ( & bb );
157
PyBuffer_Release ( & bb );
158
if ( al ) {
158
free ( al );
159
free ( al);
159
free ( b l);
160
}
161
if ( bl ) {
162
free ( bl );
163
}
164
if ( l . next ) {
160
if ( l . next ) {
165
bdiff_freehunks ( l . next );
161
bdiff_freehunks ( l . next );
166
}
162
}
mercurial/cext/manifest.c
0
+3
-5
@@
-185,15
+185,13
b' static void lazymanifest_dealloc(lazyman'
185
{
185
{
186
/* free any extra lines we had to allocate */
186
/* free any extra lines we had to allocate */
187
int i ;
187
int i ;
188
for ( i = 0 ; i < self -> numlines ; i ++ ) {
188
for ( i = 0 ; self -> lines && ( i < self -> numlines ) ; i ++ ) {
189
if ( self -> lines [ i ]. from_malloc ) {
189
if ( self -> lines [ i ]. from_malloc ) {
190
free ( self -> lines [ i ]. start );
190
free ( self -> lines [ i ]. start );
191
}
191
}
192
}
192
}
193
if ( self -> lines ) {
193
free ( self -> lines );
194
free(self -> lines );
194
self -> lines = NULL ;
195
self -> lines = NULL ;
196
}
197
if ( self -> pydata ) {
195
if ( self -> pydata ) {
198
Py_DECREF ( self -> pydata );
196
Py_DECREF ( self -> pydata );
199
self -> pydata = NULL ;
197
self -> pydata = NULL ;
mercurial/cext/revlog.c
0
+2
-4
@@
-333,10
+333,8
b' static void _index_clearcaches(indexObje'
333
PyMem_Free ( self -> offsets );
333
PyMem_Free ( self -> offsets );
334
self -> offsets = NULL ;
334
self -> offsets = NULL ;
335
}
335
}
336
if ( self -> nt ) {
336
free ( self -> nt );
337
free ( self -> nt );
337
self -> nt = NULL ;
338
self -> nt = NULL ;
339
}
340
Py_CLEAR ( self -> headrevs );
338
Py_CLEAR ( self -> headrevs );
341
}
339
}
342
340
Site-wide shortcuts
/
Use quick search box
g h
Goto home page
g g
Goto my private gists page
g G
Goto my public gists page
g 0-9
Goto bookmarked items from 0-9
n r
New repository page
n g
New gist page
Repositories
g s
Goto summary page
g c
Goto changelog page
g f
Goto files page
g F
Goto files page with file search activated
g p
Goto pull requests page
g o
Goto repository settings
g O
Goto repository access permissions settings
t s
Toggle sidebar on some pages