From: Christos Zoulas Date: Tue, 26 Apr 2016 12:37:34 +0000 (+0000) Subject: Don't free uninitialized pointer on error. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67b5864f820c60de4f5577524e24865aeec0c0b6;p=file Don't free uninitialized pointer on error. --- diff --git a/src/cdf.c b/src/cdf.c index 8e214cb3..0c6de5d5 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.78 2016/04/22 16:11:49 christos Exp $") +FILE_RCSID("@(#)$File: cdf.c,v 1.79 2016/04/26 12:37:34 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; }