summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2016-02-06 16:55:32 +0100
committerMarcus Meissner <marcus@jet.franken.de>2016-02-06 16:55:32 +0100
commitffa682f8837b9ecc3fdf2926bf4b0ad57cee9886 (patch)
tree77dd0606964bddabf7c366149fe8419337ac8da4
parente1d281caea28024fa0c33be071b377c6fd2b397d (diff)
downloadlibgphoto2-ffa682f8837b9ecc3fdf2926bf4b0ad57cee9886.tar.gz
free __w in R_ADD_RADIO in two error exits (Coverity)
-rw-r--r--camlibs/ricoh/library.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/camlibs/ricoh/library.c b/camlibs/ricoh/library.c
index 46c6fd593..48bda7213 100644
--- a/camlibs/ricoh/library.c
+++ b/camlibs/ricoh/library.c
@@ -392,8 +392,8 @@ static struct {
unsigned int __i; \
\
CR (gp_widget_new (GP_WIDGET_RADIO, _(Name), &__w)); \
- CR (gp_widget_set_name (__w, (Name))); \
- CR (gp_widget_append ((s), __w)); \
+ CRW (gp_widget_set_name (__w, (Name)), __w); \
+ CRW (gp_widget_append ((s), __w), __w); \
CR (ricoh_get_##n ((ca), (co), &__v)); \
for (__i = 0; __i < N_ELEMENTS (ricoh_##n##s); __i++) { \
CR (gp_widget_add_choice (__w, _(ricoh_##n##s[__i].name))); \