From: Jim Meyering Date: Mon, 6 Mar 2000 11:19:23 +0000 (+0000) Subject: (get_charset_aliases): Don't try to free file_name X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7ee6af7ca70de7d54494824d72d5c95d42ecc9b;p=pspp (get_charset_aliases): Don't try to free file_name if it's NULL (because we ran out of memory). From Bruno Haible. --- diff --git a/lib/localcharset.c b/lib/localcharset.c index 86f7ed1b2e..e80a2c5239 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -132,7 +132,8 @@ get_charset_aliases () } charset_aliases = cp; - free (file_name); + if (file_name != NULL) + free (file_name); } return cp;