summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-25 04:09:19 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-25 04:09:19 +0300
commit269ee1e98ef1645957276ba4160c96db307f1771 (patch)
treef810e934c7af5eb2df742933bf1566a2a8cede28 /src/utils
parent9373adc5956b57f2b8bc16ba0c66ffcc031b9c2f (diff)
downloadmanaverse-269ee1e98ef1645957276ba4160c96db307f1771.tar.gz
manaverse-269ee1e98ef1645957276ba4160c96db307f1771.tar.bz2
manaverse-269ee1e98ef1645957276ba4160c96db307f1771.tar.xz
manaverse-269ee1e98ef1645957276ba4160c96db307f1771.zip
Add missing checks.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/mkdir.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/mkdir.cpp b/src/utils/mkdir.cpp
index f0cc65f53..4ab9f7d61 100644
--- a/src/utils/mkdir.cpp
+++ b/src/utils/mkdir.cpp
@@ -80,7 +80,7 @@ int mkdir_r(const char *pathname)
}
else
{
- delete tmp;
+ delete []tmp;
return -1;
}
}
@@ -97,7 +97,7 @@ int mkdir_r(const char *pathname)
if (!(strlen(tmp) == 2 &&
!strcmp(tmp + 1, ":")))
#endif
- delete tmp;
+ delete []tmp;
return -1;
}
@@ -107,7 +107,7 @@ int mkdir_r(const char *pathname)
*p = '/';
}
}
- delete tmp;
+ delete []tmp;
return 0;
}