diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-27 16:03:10 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-27 16:03:10 +0000 |
commit | afff7dc03340f6714f61e497efc23354d5b1c652 (patch) | |
tree | cee35b78c68ae7ac43fbd5f00b785e87c98754e1 | |
parent | 69a93698dc01482a3e693742a89fe95047ff7d53 (diff) |
Fixed NULL pointer dereferencing in back_unserialize (htsback.c:976) spotted on Android platforms
-rw-r--r-- | src/htsback.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/htsback.c b/src/htsback.c index 29e83ba..8933524 100644 --- a/src/htsback.c +++ b/src/htsback.c @@ -971,9 +971,10 @@ int back_unserialize(FILE * fp, lien_back ** dst) { if ((*dst)->r.adr != NULL) freet((*dst)->r.adr); } - if (dst != NULL) - freet(dst); - *dst = NULL; + if (dst != NULL) { + freet(*dst); + *dst = NULL; + } return 1; /* error */ } |