diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-03 14:31:23 +0100 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2013-05-03 14:31:23 +0100 |
commit | f889f0ccbf354792e355ec8fc3fe7654552f2864 (patch) | |
tree | 40f548c4164cb2da317e0644ca77d1dd295be588 /content/content.c | |
parent | 4c4dff3384ef87a537cb57dd893c9b7a1d3a441d (diff) | |
download | netsurf-f889f0ccbf354792e355ec8fc3fe7654552f2864.tar.gz netsurf-f889f0ccbf354792e355ec8fc3fe7654552f2864.tar.bz2 |
fix leak in error path
Diffstat (limited to 'content/content.c')
-rw-r--r-- | content/content.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/content/content.c b/content/content.c index 3533d943c..9482fb976 100644 --- a/content/content.c +++ b/content/content.c @@ -92,6 +92,7 @@ nserror content__init(struct content *c, const content_handler *handler, if (fallback_charset != NULL) { c->fallback_charset = strdup(fallback_charset); if (c->fallback_charset == NULL) { + free(user_sentinel); return NSERROR_NOMEM; } } |