IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8497


Ignore:
Timestamp:
Aug 22, 2006, 4:45:01 PM (20 years ago)
Author:
jhoblitt
Message:

fix a possible memory leak

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/slurp.c

    r6846 r8497  
    77
    88#include "slurp.h"
     9
     10# define SLURP_SIZE 1024
    911
    1012psString slurp(int fd)
     
    3840            // else - it's an error
    3941            psError(PS_ERR_UNKNOWN, true, "slurp failed");
     42            psFree(str);
    4043            return NULL;
    4144        }
  • trunk/ippTools/src/slurp.h

    r6845 r8497  
    22#include <pslib.h>
    33
    4 # define SLURP_SIZE 1024
    5 
    64psString slurp(int fd);
    75psString fslurp(FILE *stream);
Note: See TracChangeset for help on using the changeset viewer.