From 923a62b76284f3e5aa2ea542e30d27d5cf0351bf Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Thu, 10 May 2007 07:02:41 +0000 Subject: [PATCH] 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 --- camlibs/ptp2/library.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index dc9540b18..4ac13aadd 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -1,7 +1,7 @@ /* library.c * * Copyright (C) 2001-2005 Mariusz Woloszyn - * Copyright (C) 2003-2006 Marcus Meissner + * Copyright (C) 2003-2007 Marcus Meissner * Copyright (C) 2005 Hubert Figuiere * * 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) {