diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-04-13 03:17:32 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2004-04-13 03:17:32 +0000 |
commit | c9791c336c0de17e6b14642567714f0718622afa (patch) | |
tree | 0d7a16acda99d1bb4d64a06adfc2bb8ad333b8e7 /misc | |
parent | add teddy 1.81.5 (diff) |
It is possible for ``lang'' to be NULL, and thus free'ing it would be a bad
idea. Add a check to prevent a crash.
Submitted by: Mark Evenson <evenson@panix.com>
Notes
Notes:
svn path=/head/; revision=106860
Diffstat (limited to 'misc')
-rw-r--r-- | misc/shared-mime-info/files/patch-update-mime-database.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/misc/shared-mime-info/files/patch-update-mime-database.c b/misc/shared-mime-info/files/patch-update-mime-database.c new file mode 100644 index 000000000000..31465c2972e8 --- /dev/null +++ b/misc/shared-mime-info/files/patch-update-mime-database.c @@ -0,0 +1,12 @@ +--- update-mime-database.c.orig Mon Oct 13 11:43:38 2003 ++++ update-mime-database.c Mon Apr 12 22:45:01 2004 +@@ -377,7 +377,8 @@ + } + } + +- xmlFree(lang); ++ if (lang) ++ xmlFree(lang); + } + + /* 'node' is a <mime-type> node from a source file, whose type is 'type'. |