]> 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 8e214cb3715b8ac4685312b0a9340dce01fc12f4..0c6de5d5541fb2c029a84304ccf16c2878c04554 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.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 <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;
 }