Show More
@@ -61,12 +61,12 b' static struct flist *lalloc(int size)' | |||||
61 | a = (struct flist *)malloc(sizeof(struct flist)); |
|
61 | a = (struct flist *)malloc(sizeof(struct flist)); | |
62 | if (a) { |
|
62 | if (a) { | |
63 | a->base = (struct frag *)malloc(sizeof(struct frag) * size); |
|
63 | a->base = (struct frag *)malloc(sizeof(struct frag) * size); | |
64 |
if ( |
|
64 | if (a->base) { | |
65 | free(a); |
|
|||
66 | a = NULL; |
|
|||
67 | } else |
|
|||
68 | a->head = a->tail = a->base; |
|
65 | a->head = a->tail = a->base; | |
69 | return a; |
|
66 | return a; | |
|
67 | } | |||
|
68 | free(a); | |||
|
69 | a = NULL; | |||
70 | } |
|
70 | } | |
71 | if (!PyErr_Occurred()) |
|
71 | if (!PyErr_Occurred()) | |
72 | PyErr_NoMemory(); |
|
72 | PyErr_NoMemory(); |
General Comments 0
You need to be logged in to leave comments.
Login now