From 0dde0adb507ff9dc758d9e2d2749479344dd24ce Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 26 Apr 2016 12:37:34 +0000 Subject: [PATCH] Don't free uninitialized pointer on error. --- src/cdf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.40.0