refcntr transition to shared_ptr. test exec.release->reset

This commit is contained in:
Jean-Francois Dockes 2015-09-05 08:51:41 +02:00
parent 52939d5517
commit 6efbc3b841

View file

@ -1335,8 +1335,8 @@ static bool inflateToDynBuf(void* inp, UINT inlen, void **outpp, UINT *outlenp)
#include <errno.h>
#include <string.h>
#include <sys/types.h>
#include "safesysstat.h"
#include "safeunistd.h"
#include <sys/stat.h>
#include <unistd.h>
#include <string>
#include <iostream>
@ -1420,8 +1420,8 @@ bool resizecc(const string& dir, int newmbs)
}
// Done with our objects here, there is no close() method, so delete them
occ.release();
ncc.release();
occ.reset();
ncc.reset();
if (rename(ofn.c_str(), backupfn.c_str()) < 0) {
cerr << "Could not create backup " << backupfn << " : ";