From de640e338cf3b2779e2c26c98b02251a0ce93ef1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 23 Aug 2017 08:03:38 +0530 Subject: [PATCH] Fix compiler warning in icu module --- src/calibre/utils/icu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/icu.c b/src/calibre/utils/icu.c index 3c52cb3265..44eba37878 100644 --- a/src/calibre/utils/icu.c +++ b/src/calibre/utils/icu.c @@ -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); } // }}}