diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-01-29 16:29:50 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2014-01-29 16:29:50 +0000 |
commit | b1564baed9db112cb1334027f1d141877d88fcf4 (patch) | |
tree | 8017b0e8fc8eb0e3a4e77bdfbe3d886d9f7df8df /cups/http-addrlist.c | |
parent | 95d1f98299bcd3762a4d4f9991aa16d849d03fb7 (diff) | |
download | cups-b1564baed9db112cb1334027f1d141877d88fcf4.tar.gz |
Fix clang-reported issues (<rdar://problem/15936066>)
- httpAddrGetList could leak memory.
- cupsRasterInterpretPPD could access freed memory.
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11550 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/http-addrlist.c')
-rw-r--r-- | cups/http-addrlist.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cups/http-addrlist.c b/cups/http-addrlist.c index 287692ff3..7047f7d11 100644 --- a/cups/http-addrlist.c +++ b/cups/http-addrlist.c @@ -447,6 +447,7 @@ httpAddrGetList(const char *hostname, /* I - Hostname, IP address, or NULL for p if ((first = (http_addrlist_t *)calloc(1, sizeof(http_addrlist_t))) != NULL) { + addr = first; first->addr.un.sun_family = AF_LOCAL; strlcpy(first->addr.un.sun_path, hostname, sizeof(first->addr.un.sun_path)); } |