]> granicus.if.org Git - file/commitdiff
Don't free uninitialized pointer on error.
authorChristos Zoulas <christos@zoulas.com>
Tue, 26 Apr 2016 12:37:34 +0000 (12:37 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 26 Apr 2016 12:37:34 +0000 (12:37 +0000)
src/cdf.c

index a94e16e9b2e4a508f468b4997d44f7c1293b0c25..4940af4667876d771867b90e9d64023709c40137 100644 (file)
--- 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 <assert.h>
@@ -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;
 }