Show More
@@ -1112,8 +1112,11 b' static int nt_init(indexObject *self)' | |||||
1112 | self->ntrev = (int)index_length(self) - 1; |
|
1112 | self->ntrev = (int)index_length(self) - 1; | |
1113 | self->ntlookups = 1; |
|
1113 | self->ntlookups = 1; | |
1114 | self->ntmisses = 0; |
|
1114 | self->ntmisses = 0; | |
1115 | if (nt_insert(self, nullid, INT_MAX) == -1) |
|
1115 | if (nt_insert(self, nullid, INT_MAX) == -1) { | |
|
1116 | free(self->nt); | |||
|
1117 | self->nt = NULL; | |||
1116 | return -1; |
|
1118 | return -1; | |
|
1119 | } | |||
1117 | } |
|
1120 | } | |
1118 | return 0; |
|
1121 | return 0; | |
1119 | } |
|
1122 | } |
General Comments 0
You need to be logged in to leave comments.
Login now