From: Christos Zoulas Date: Tue, 26 Apr 2016 12:37:34 +0000 (+0000) Subject: Don't free uninitialized pointer on error. X-Git-Tag: FILE5_27~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dde0adb507ff9dc758d9e2d2749479344dd24ce;p=file Don't free uninitialized pointer on error. --- diff --git a/src/cdf.c b/src/cdf.c index a94e16e9..4940af46 100644 --- a/src/cdf.c +++ b/src/cdf.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: cdf.c,v 1.77 2016/04/22 16:00:29 christos Exp $") +FILE_RCSID("@(#)$File: cdf.c,v 1.78 2016/04/22 16:11:49 christos Exp $") #endif #include @@ -739,6 +739,7 @@ cdf_read_short_stream(const cdf_info_t *info, const cdf_header_t *h, return cdf_read_long_sector_chain(info, h, sat, d->d_stream_first_sector, d->d_size, scn); out: + scn->sst_tab = NULL; (void)cdf_zero_stream(scn); return 0; }