Correct some mistkaes picked up by static analysis.

Thanks to seo for pointing these out.
This commit is contained in:
Adam Sutton 2013-02-03 13:22:21 +00:00
parent a0e5b07e62
commit a582fe7c7b
3 changed files with 4 additions and 1 deletions

View file

@ -1857,7 +1857,8 @@ cwc_emm_cryptoworks(cwc_t *cwc, uint8_t *data, int len)
cwc_send_msg(cwc, composed, elen + 12, 0, 1);
free(composed);
free(tmp);
}
} else if (tmp)
free(tmp);
cwc->cwc_cryptoworks_emm.shared_emm = NULL;
cwc->cwc_cryptoworks_emm.shared_len = 0;
}

View file

@ -520,6 +520,7 @@ tda_add(int adapter_num)
dirp = opendir(path);
if (!dirp)
return;
closedir(dirp);
/* Check each frontend */
// Note: this algo will fail if there are really exotic variations

View file

@ -283,6 +283,7 @@ show_usage
}
tok = strtok(NULL, "\n");
}
free(desc);
}
}
printf("\n");