diff options
author | Reuben Thomas <rrt@sc3d.org> | 2011-12-08 12:38:24 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2011-12-08 12:38:24 +0000 |
commit | cb1b11f4e1bcc3c590d9601a03247b918540ef06 (patch) | |
tree | 3741ccc82e102f38ba0c4c39a224912fb5df8d2d /src/encoding.c | |
parent | 8af6ef037a378f51faeb80171237ac7cd4b18c34 (diff) | |
download | file-git-cb1b11f4e1bcc3c590d9601a03247b918540ef06.tar.gz |
Simplify if (p) free(p) to free(p).
Diffstat (limited to 'src/encoding.c')
-rw-r--r-- | src/encoding.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/encoding.c b/src/encoding.c index 5aed11fd..ee5b5716 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: encoding.c,v 1.4 2009/09/13 19:02:22 christos Exp $") +FILE_RCSID("@(#)$File: encoding.c,v 1.5 2010/07/21 16:47:17 christos Exp $") #endif /* lint */ #include "magic.h" @@ -133,8 +133,7 @@ file_encoding(struct magic_set *ms, const unsigned char *buf, size_t nbytes, uni } done: - if (nbuf) - free(nbuf); + free(nbuf); return rv; } |