diff options
author | Laurent Bigonville <bigon@bigon.be> | 2017-02-07 16:05:00 +0100 |
---|---|---|
committer | Laurent Bigonville <bigon@bigon.be> | 2017-02-07 16:05:00 +0100 |
commit | 0bdcf9f9dbee67dee47694e0012fa891588abc89 (patch) | |
tree | e71df38336bc83a3b89afe4720f7f48643e49513 | |
parent | 55a30a95f919c8173385fa238dcba61217710dd0 (diff) | |
download | libproxy-git-0bdcf9f9dbee67dee47694e0012fa891588abc89.tar.gz |
Set lasturl to NULL after free/delete
It avoids the lasturl to be freed a 2nd time when the rewind() method is
called.
Closes: #59
-rw-r--r-- | libproxy/modules/wpad_dns_alias.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libproxy/modules/wpad_dns_alias.cpp b/libproxy/modules/wpad_dns_alias.cpp index 669dccf..5b8c2e0 100644 --- a/libproxy/modules/wpad_dns_alias.cpp +++ b/libproxy/modules/wpad_dns_alias.cpp @@ -39,6 +39,7 @@ public: lastpac = *pac = lasturl->get_pac(); if (!lastpac) { delete lasturl; + lasturl = NULL; return NULL; } |