added missing free() (CID 95) (CID 96)

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@10165 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Marcus Meissner
2007-05-10 07:02:41 +00:00
parent be96c73b23
commit 923a62b762

View File

@@ -1,7 +1,7 @@
/* library.c
*
* Copyright (C) 2001-2005 Mariusz Woloszyn <emsi@ipartners.pl>
* Copyright (C) 2003-2006 Marcus Meissner <marcus@jet.franken.de>
* Copyright (C) 2003-2007 Marcus Meissner <marcus@jet.franken.de>
* Copyright (C) 2005 Hubert Figuiere <hfiguiere@teaser.fr>
*
* This library is free software; you can redistribute it and/or
@@ -2629,6 +2629,7 @@ ptp_mtp_parse_metadata (
}
if (opd.GetSet == 0) {
gp_log (GP_LOG_DEBUG, "ptp2", "Tag %s is read only, sorry.", propname);
free (content); content = NULL;
continue;
}
switch (opd.DataType) {