X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=libiberty%2Fspaces.c;h=d97390b2ddce15721479afaaaae00ba062d9e101;hb=13aa5ceb01cc94a0e617f397c0c5434fc22bb1e5;hp=67481c9bcd8ff026491b68699a97c5a9871b2bae;hpb=abf6a75b428517d9caaf9155212b0b10e0379a99;p=deliverable%2Fbinutils-gdb.git diff --git a/libiberty/spaces.c b/libiberty/spaces.c index 67481c9bcd..d97390b2dd 100644 --- a/libiberty/spaces.c +++ b/libiberty/spaces.c @@ -1,5 +1,5 @@ /* Allocate memory region filled with spaces. - Copyright (C) 1991 Free Software Foundation, Inc. + Copyright (C) 1991-2020 Free Software Foundation, Inc. This file is part of the libiberty library. Libiberty is free software; you can redistribute it and/or @@ -53,10 +53,7 @@ spaces (int count) if (count > maxsize) { - if (buf) - { - free (buf); - } + free (buf); buf = (char *) malloc (count + 1); if (buf == (char *) 0) return 0;