| Message ID | 1301490729-22084-10-git-send-email-ander.conselvan-de-oliveira@nokia.com |
|---|---|
| State | Accepted, archived |
| Commit | d0749d6abdf0fd4d8b4e59b02dad8ccda3f10995 |
| Headers | show |
diff --git a/modules/om/generic/omGeneric.c b/modules/om/generic/omGeneric.c index c78c0a9..0029093 100644 --- a/modules/om/generic/omGeneric.c +++ b/modules/om/generic/omGeneric.c @@ -1932,8 +1932,10 @@ read_EncodingInfo( } else len = strlen(buf); font_data->name = (char *) Xmalloc(len + 1); - if (font_data->name == NULL) + if (font_data->name == NULL) { + Xfree(font_data); return NULL; + } strncpy(font_data->name, buf,len); font_data->name[len] = 0; if (bufptr && _XlcCompareISOLatin1(bufptr, "GL") == 0)
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> --- modules/om/generic/omGeneric.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)