Gitweb links:
...log
http://git.netsurf-browser.org/netsurf.git/shortlog/9c29935f3ca274d002517ed09e17921e42dbaf21
...commit
http://git.netsurf-browser.org/netsurf.git/commit/9c29935f3ca274d002517ed09e17921e42dbaf21
...tree
http://git.netsurf-browser.org/netsurf.git/tree/9c29935f3ca274d002517ed09e17921e42dbaf21
The branch, master has been updated
via 9c29935f3ca274d002517ed09e17921e42dbaf21 (commit)
from 097f8dcde5c212d91bf25ed9256860cb2b8bfa3d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commitdiff
http://git.netsurf-browser.org/netsurf.git/commit/?id=9c29935f3ca274d002517ed09e17921e42dbaf21
commit 9c29935f3ca274d002517ed09e17921e42dbaf21
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>
HTTP Auth: Squash error path leaks.
diff --git a/desktop/netsurf.c b/desktop/netsurf.c
index 3757a2a..8785a98 100644
--- a/desktop/netsurf.c
+++ b/desktop/netsurf.c
@@ -146,6 +146,8 @@ static nserror netsurf__unpack_userpass(
username = malloc(1);
password = malloc(1);
if (username == NULL || password == NULL) {
+ free(username);
+ free(password);
return NSERROR_NOMEM;
}
username[0] = '\0';
@@ -167,6 +169,8 @@ static nserror netsurf__unpack_userpass(
username = malloc(len + 1);
password = malloc(len2 + 1);
if (username == NULL || password == NULL) {
+ free(username);
+ free(password);
return NSERROR_NOMEM;
}
memcpy(username, userpass, len);
-----------------------------------------------------------------------
Summary of changes:
desktop/netsurf.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/desktop/netsurf.c b/desktop/netsurf.c
index 3757a2a..8785a98 100644
--- a/desktop/netsurf.c
+++ b/desktop/netsurf.c
@@ -146,6 +146,8 @@ static nserror netsurf__unpack_userpass(
username = malloc(1);
password = malloc(1);
if (username == NULL || password == NULL) {
+ free(username);
+ free(password);
return NSERROR_NOMEM;
}
username[0] = '\0';
@@ -167,6 +169,8 @@ static nserror netsurf__unpack_userpass(
username = malloc(len + 1);
password = malloc(len2 + 1);
if (username == NULL || password == NULL) {
+ free(username);
+ free(password);
return NSERROR_NOMEM;
}
memcpy(username, userpass, len);
--
NetSurf Browser
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org