diff options
author | David E. O'Brien <obrien@FreeBSD.org> | 2012-04-13 23:30:38 +0000 |
---|---|---|
committer | David E. O'Brien <obrien@FreeBSD.org> | 2012-04-13 23:30:38 +0000 |
commit | b60a4870e8e65b50ccb2ec0bdbe880d2e94efa9e (patch) | |
tree | 76d27a13085cbcecae404c91dc1a6e03fc5c5d7b /compress.c | |
parent | dacc26abaa8ab61168c45f0716bea144fa8afd14 (diff) |
Diffstat (limited to 'compress.c')
-rw-r--r-- | compress.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compress.c b/compress.c index b82ab7b956f3..4308abfaa3ab 100644 --- a/compress.c +++ b/compress.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: compress.c,v 1.67 2011/09/01 12:12:37 christos Exp $") +FILE_RCSID("@(#)$File: compress.c,v 1.68 2011/12/08 12:38:24 rrt Exp $") #endif #include "magic.h" @@ -134,8 +134,7 @@ file_zmagic(struct magic_set *ms, int fd, const char *name, } } error: - if (newbuf) - free(newbuf); + free(newbuf); ms->flags |= MAGIC_COMPRESS; return rv; } |