refcntr transition to shared_ptr. test exec.release->reset
This commit is contained in:
parent
52939d5517
commit
6efbc3b841
1 changed files with 4 additions and 4 deletions
|
@ -1335,8 +1335,8 @@ static bool inflateToDynBuf(void* inp, UINT inlen, void **outpp, UINT *outlenp)
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include "safesysstat.h"
|
#include <sys/stat.h>
|
||||||
#include "safeunistd.h"
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#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
|
// Done with our objects here, there is no close() method, so delete them
|
||||||
occ.release();
|
occ.reset();
|
||||||
ncc.release();
|
ncc.reset();
|
||||||
|
|
||||||
if (rename(ofn.c_str(), backupfn.c_str()) < 0) {
|
if (rename(ofn.c_str(), backupfn.c_str()) < 0) {
|
||||||
cerr << "Could not create backup " << backupfn << " : ";
|
cerr << "Could not create backup " << backupfn << " : ";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue