freshclam: remove empty temporary directories on EXIT_n (bb#2116)

0.96
Tomasz Kojm 15 years ago
parent c8baa1b9d0
commit c1828db3a9
  1. 4
      ChangeLog
  2. 3
      freshclam/manager.c

@ -1,3 +1,7 @@
Fri Jul 16 11:11:27 CEST 2010 (tk)
----------------------------------
* freshclam: remove empty temporary directories on EXIT_n (bb#2116)
Mon Jul 12 12:27:44 CEST 2010 (tk)
----------------------------------
* libclamunrar/unrar.c: fix error path memory leaks (bb#2100)

@ -2029,6 +2029,7 @@ int downloadmanager(const struct optstruct *opts, const char *hostname, const ch
}
mirman_write("mirrors.dat", &mdat);
cli_rmdirs(updtmpdir);
if(updated) {
if(optget(opts, "HTTPProxyServer")->enabled) {
@ -2070,7 +2071,6 @@ int downloadmanager(const struct optstruct *opts, const char *hostname, const ch
free(cmd);
if(newver)
free(newver);
cli_rmdirs(updtmpdir);
return 75;
}
@ -2093,6 +2093,5 @@ int downloadmanager(const struct optstruct *opts, const char *hostname, const ch
if(newver)
free(newver);
cli_rmdirs(updtmpdir);
return 0;
}

Loading…
Cancel
Save