aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/sledjchisl/sledjchisl.c
diff options
context:
space:
mode:
authoronefang2020-03-18 11:34:55 +1000
committeronefang2020-03-18 11:34:55 +1000
commit8db2b8213a10615b8c275d2ecda15ea19b4f6ba2 (patch)
treee5271a0da91e439c7017de44b3b3e8957509a483 /src/sledjchisl/sledjchisl.c
parentClarify web text about stats being updated. (diff)
downloadopensim-SC-8db2b8213a10615b8c275d2ecda15ea19b4f6ba2.zip
opensim-SC-8db2b8213a10615b8c275d2ecda15ea19b4f6ba2.tar.gz
opensim-SC-8db2b8213a10615b8c275d2ecda15ea19b4f6ba2.tar.bz2
opensim-SC-8db2b8213a10615b8c275d2ecda15ea19b4f6ba2.tar.xz
Remove extranous free()s.
Diffstat (limited to 'src/sledjchisl/sledjchisl.c')
-rw-r--r--src/sledjchisl/sledjchisl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index 7d9c7fe..b6e4cd0 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -2474,7 +2474,6 @@ HTMLfile *checkHTMLcache(char *file)
2474 if (-1 == fd) 2474 if (-1 == fd)
2475 { 2475 {
2476 HTMLfileCache->remove(HTMLfileCache, file); 2476 HTMLfileCache->remove(HTMLfileCache, file);
2477 free(ret);
2478 ret = NULL; 2477 ret = NULL;
2479 } 2478 }
2480 else 2479 else
@@ -2483,7 +2482,6 @@ HTMLfile *checkHTMLcache(char *file)
2483 if (fstat(fd, &sb) == -1) 2482 if (fstat(fd, &sb) == -1)
2484 { 2483 {
2485 HTMLfileCache->remove(HTMLfileCache, file); 2484 HTMLfileCache->remove(HTMLfileCache, file);
2486 free(ret);
2487 ret = NULL; 2485 ret = NULL;
2488 E("Failed to stat %s", file); 2486 E("Failed to stat %s", file);
2489 } 2487 }
@@ -2492,7 +2490,6 @@ HTMLfile *checkHTMLcache(char *file)
2492 if ((NULL != ret) && (ret->last.tv_sec < sb.st_mtim.tv_sec)) 2490 if ((NULL != ret) && (ret->last.tv_sec < sb.st_mtim.tv_sec))
2493 { 2491 {
2494 HTMLfileCache->remove(HTMLfileCache, file); 2492 HTMLfileCache->remove(HTMLfileCache, file);
2495 free(ret);
2496 ret = NULL; 2493 ret = NULL;
2497 } 2494 }
2498 2495