Ignore:
Timestamp:
2015-10-09T02:41:01Z (5 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
b87e5dc
Parents:
c4e61db
git-author:
dequis <dx@…> (08-10-15 07:48:06)
git-committer:
dequis <dx@…> (09-10-15 02:41:01)
Message:

twitter: Fix some nitpicky issues reported by coverity

Mostly minor rare leaks that happen in error conditions, and one
dereference before null check in twitter_logout (the null check is
probably the wrong one there, but it doesn't hurt to keep it)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_http.c

    rc4e61db rbbff22d  
    5353        char *tmp;
    5454        GString *request = g_string_new("");
    55         void *ret;
     55        void *ret = NULL;
    5656        char *url_arguments;
    5757        url_t *base_url = NULL;
     
    7272                base_url = g_new0(url_t, 1);
    7373                if (!url_set(base_url, url_string)) {
    74                         g_free(base_url);
    75                         return NULL;
     74                        goto error;
    7675                }
    7776        }
     
    132131        }
    133132
     133error:
    134134        g_free(url_arguments);
    135135        g_string_free(request, TRUE);
Note: See TracChangeset for help on using the changeset viewer.