Changeset 5a4600 in git


Ignore:
Timestamp:
Mar 9, 2000, 2:18:58 PM (24 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '648d28f488f6ff08f5607ff229b9ad9e4a5b93c2')
Children:
4f2df6676cc0528237d5cb0589fb0e773fdadcd6
Parents:
fe34ae1e5d6069dbf35bb162e184eaeb498d604c
Message:
*hannes: fixed FRee NULL


git-svn-id: file:///usr/local/Singular/svn/trunk@4188 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/fereadl.c

    rfe34ae r5a4600  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: fereadl.c,v 1.15 2000-03-08 15:08:09 Singular Exp $ */
     4/* $Id: fereadl.c,v 1.16 2000-03-09 13:18:58 Singular Exp $ */
    55/*
    66* ABSTRACT: input from ttys, simulating fgets
     
    108108        fe_is_raw_tty=0;
    109109      }
    110       for(i=fe_hist_max-1;i>=0;i--)
     110      if (fe_hist!=NULL)
    111111      {
    112         FreeL((ADDRESS)fe_hist[i]);
     112        for(i=fe_hist_max-1;i>=0;i--)
     113        {
     114          FreeL((ADDRESS)fe_hist[i]);
     115        }
     116        Free((ADDRESS)fe_hist,fe_hist_max*sizeof(char *));
     117        fe_hist=NULL;
    113118      }
    114       Free((ADDRESS)fe_hist,fe_hist_max*sizeof(char *));
    115       fe_hist=NULL;
    116119      if (!fe_stdout_is_tty)
    117120      {
Note: See TracChangeset for help on using the changeset viewer.