From 0afc97d423dd7c1023ce1d2b559df482937ed97d Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sun, 5 Jan 2014 20:12:34 +0000 Subject: free allocated string git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@14637 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2/gphoto2-context.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libgphoto2') diff --git a/libgphoto2/gphoto2-context.c b/libgphoto2/gphoto2-context.c index c08802517..7efd9d2d2 100644 --- a/libgphoto2/gphoto2-context.c +++ b/libgphoto2/gphoto2-context.c @@ -452,6 +452,8 @@ gp_context_question (GPContext *context, const char *format, ...) if (context && context->question_func) feedback = context->question_func (context, str, context->question_func_data); + free (str); + return feedback; } -- cgit v1.2.1