diff options
| -rw-r--r-- | src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c index e30a0b3..206c684 100644 --- a/src/utils.c +++ b/src/utils.c | |||
| @@ -245,7 +245,7 @@ int buffer_read_from_filename(const char *filename, char **buffer, uint64_t *len | |||
| 245 | int ret = 1; | 245 | int ret = 1; |
| 246 | if (fread(*buffer, sizeof(char), size, f) != size) { | 246 | if (fread(*buffer, sizeof(char), size, f) != size) { |
| 247 | usbmuxd_log(LL_ERROR, "%s: ERROR: couldn't read %d bytes from %s", __func__, (int)size, filename); | 247 | usbmuxd_log(LL_ERROR, "%s: ERROR: couldn't read %d bytes from %s", __func__, (int)size, filename); |
| 248 | free(buffer); | 248 | free(*buffer); |
| 249 | ret = 0; | 249 | ret = 0; |
| 250 | errno = EIO; | 250 | errno = EIO; |
| 251 | } | 251 | } |
