projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0228974
)
Fixing memory leak on error
author
jongfoster
<jongfoster@users.sourceforge.net>
Wed, 3 Apr 2002 23:32:47 +0000
(23:32 +0000)
committer
jongfoster
<jongfoster@users.sourceforge.net>
Wed, 3 Apr 2002 23:32:47 +0000
(23:32 +0000)
urlmatch.c
patch
|
blob
|
history
diff --git
a/urlmatch.c
b/urlmatch.c
index
772261d
..
bdc58ee
100644
(file)
--- a/
urlmatch.c
+++ b/
urlmatch.c
@@
-1,4
+1,4
@@
-const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.
6 2002/03/24 13:25:43
swa Exp $";
+const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.
7 2002/03/26 22:29:55
swa Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/urlmatch.c,v $
@@
-33,6
+33,9
@@
const char urlmatch_rcs[] = "$Id: urlmatch.c,v 1.6 2002/03/24 13:25:43 swa Exp $
*
* Revisions :
* $Log: urlmatch.c,v $
*
* Revisions :
* $Log: urlmatch.c,v $
+ * Revision 1.7 2002/03/26 22:29:55 swa
+ * we have a new homepage!
+ *
* Revision 1.6 2002/03/24 13:25:43 swa
* name change related issues
*
* Revision 1.6 2002/03/24 13:25:43 swa
* name change related issues
*
@@
-665,6
+668,7
@@
jb_err create_url_spec(struct url_spec * url, const char * buf)
freez(url->spec);
freez(url->path);
freez(url->spec);
freez(url->path);
+ regfree(url->preg);
freez(url->preg);
return JB_ERR_PARSE;
freez(url->preg);
return JB_ERR_PARSE;
@@
-704,6
+708,7
@@
jb_err create_url_spec(struct url_spec * url, const char * buf)
freez(url->spec);
freez(url->path);
#ifdef REGEX
freez(url->spec);
freez(url->path);
#ifdef REGEX
+ regfree(url->preg);
freez(url->preg);
#endif /* def REGEX */
return JB_ERR_MEMORY;
freez(url->preg);
#endif /* def REGEX */
return JB_ERR_MEMORY;
@@
-723,6
+728,7
@@
jb_err create_url_spec(struct url_spec * url, const char * buf)
freez(url->spec);
freez(url->path);
#ifdef REGEX
freez(url->spec);
freez(url->path);
#ifdef REGEX
+ regfree(url->preg);
freez(url->preg);
#endif /* def REGEX */
freez(url->dbuffer);
freez(url->preg);
#endif /* def REGEX */
freez(url->dbuffer);
@@
-741,6
+747,7
@@
jb_err create_url_spec(struct url_spec * url, const char * buf)
freez(url->spec);
freez(url->path);
#ifdef REGEX
freez(url->spec);
freez(url->path);
#ifdef REGEX
+ regfree(url->preg);
freez(url->preg);
#endif /* def REGEX */
freez(url->dbuffer);
freez(url->preg);
#endif /* def REGEX */
freez(url->dbuffer);