##// END OF EJS Templates
lazymanifest: don't crash when out of memory (issue5916)...
Josef 'Jeff' Sipek -
r38321:6caca2a7 stable
parent child Browse files
Show More
@@ -185,7 +185,7 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 }
General Comments 0
You need to be logged in to leave comments. Login now