]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/bsys.c
kes Minor refactoring of restore decryption code.
[bacula/bacula] / bacula / src / lib / bsys.c
index 0c741c4b0bb1661314453fcfa9a3ca903c8288bb..bbfaf6eeea8848e0cebf40a7f660bd2a7e4d6b5f 100644 (file)
@@ -234,7 +234,11 @@ void bfree(void *buf)
 
 void *brealloc (void *buf, size_t size)
 {
+#ifdef SMARTALOC
+   buf = sm_realloc(__FILE__, __LINE__, buf, size);
+#else
    buf = realloc(buf, size);
+#endif
    if (buf == NULL) {
       berrno be;
       Emsg1(M_ABORT, 0, _("Out of memory: ERR=%s\n"), be.bstrerror());
@@ -243,7 +247,7 @@ void *brealloc (void *buf, size_t size)
 }
 
 
-void *bcalloc (size_t size1, size_t size2)
+void *bcalloc(size_t size1, size_t size2)
 {
   void *buf;