X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Flocalcharset.c;h=38e36ef3c94801c39f7fabd36c613ac846609621;hb=11a637ed5febd2bc68591abf763a4b014da82664;hp=e96188bb7a82f70affe9072c2bea6c94c7c07d03;hpb=b8d53f77acf1ed08ba808014e534e07c9dd40daf;p=pspp diff --git a/lib/localcharset.c b/lib/localcharset.c index e96188bb7a..38e36ef3c9 100644 --- a/lib/localcharset.c +++ b/lib/localcharset.c @@ -228,8 +228,7 @@ get_charset_aliases (void) { /* Out of memory. */ res_size = 0; - if (old_res_ptr != NULL) - free (old_res_ptr); + free (old_res_ptr); break; } strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);