diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2016-02-06 16:55:32 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2016-02-06 16:55:32 +0100 |
commit | ffa682f8837b9ecc3fdf2926bf4b0ad57cee9886 (patch) | |
tree | 77dd0606964bddabf7c366149fe8419337ac8da4 | |
parent | e1d281caea28024fa0c33be071b377c6fd2b397d (diff) | |
download | libgphoto2-ffa682f8837b9ecc3fdf2926bf4b0ad57cee9886.tar.gz |
free __w in R_ADD_RADIO in two error exits (Coverity)
-rw-r--r-- | camlibs/ricoh/library.c | 4 |
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))); \ |