Fix compiler warning in icu module

This commit is contained in:
Kovid Goyal 2017-08-23 08:03:38 +05:30
parent c04c82c7cf
commit de640e338c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -182,7 +182,8 @@ icu_Collator_strcmp(icu_Collator *self, PyObject *args) {
if (b == NULL) goto end;
res = ucol_strcoll(self->collator, a, asz, b, bsz);
end:
if (a != NULL) free(a); if (b != NULL) free(b);
if (a != NULL) free(a);
if (b != NULL) free(b);
return (PyErr_Occurred()) ? NULL : Py_BuildValue("i", res);
} // }}}