Fixed NULL pointer dereferencing in back_unserialize (htsback.c:976) spotted on Android platforms

This commit is contained in:
Xavier Roche
2014-06-27 16:03:10 +00:00
parent 69a93698dc
commit afff7dc033

View File

@@ -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 */
}