Mercurial > mplayer.hg
changeset 32628:bfe41b532fe9
Remove pointless NULL checks before free.
author | reimar |
---|---|
date | Tue, 14 Dec 2010 19:51:26 +0000 |
parents | 223be180109d |
children | 7afaaaa3f4f4 |
files | playtreeparser.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/playtreeparser.c Tue Dec 14 19:49:03 2010 +0000 +++ b/playtreeparser.c Tue Dec 14 19:51:26 2010 +0000 @@ -717,7 +717,7 @@ } return 3 * n; err_out: - if (*buf) free(*buf); + free(*buf); *buf = NULL; return 0; } @@ -785,8 +785,8 @@ play_tree_add_file(entry, url); free(url); out: - if (addr) free(addr); - if (unicast_url) free(unicast_url); + free(addr); + free(unicast_url); return entry; }