diff options
author | portix <portix@gmx.net> | 2014-03-01 14:35:46 +0100 |
---|---|---|
committer | portix <portix@gmx.net> | 2014-03-01 14:35:46 +0100 |
commit | bad50c5eae0835cb762376aa8ffb28b1245627c2 (patch) | |
tree | dd445e60dd4e1477e3013fb2f7f59b3534889d01 | |
parent | 190cd57ca807829e5ffe45038eaf97028557cf32 (diff) | |
download | dwb-bad50c5eae0835cb762376aa8ffb28b1245627c2.zip |
Use exar_free in exar.c
-rw-r--r-- | exar/exar.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/exar/exar.c b/exar/exar.c index b1cfefb3..f2d9231a 100644 --- a/exar/exar.c +++ b/exar/exar.c @@ -359,8 +359,7 @@ extract(const char *archive, const char *file, off_t *s, int (*cmp)(const char * if (fread(ret, 1, header.eh_size, f) != (size_t)header.eh_size) { fprintf(stderr, "Failed to read %s\n", header.eh_name); - free(ret); - ret = NULL; + exar_free(ret); } else if (s != NULL) *s = header.eh_size; |