Upgrade Tapir - Fix 2 small memory leaks around outbound connection handling #443
|
@ -12,7 +12,6 @@ import (
|
|||
"git.openprivacy.ca/openprivacy/log"
|
||||
"io"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
)
|
||||
|
@ -797,7 +796,7 @@ func (cps *CwtchProfileStorage) Export(filename string) error {
|
|||
defer tarWriter.Close()
|
||||
|
||||
// We need to know the base directory so we can import it later (and prevent duplicates)...
|
||||
profilePath := path.Base(cps.ProfileDirectory)
|
||||
profilePath := filepath.Base(cps.ProfileDirectory)
|
||||
|
||||
err = addFileToTarWriter(profilePath, profileDB, tarWriter)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue