]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/contrib/error.cc
merged from lp:~donkult/apt/sid
[apt.git] / apt-pkg / contrib / error.cc
index fe50e606b6fd2a33e45716d8e0962dd06447d053..18810d2a47f6234dbcbf2c90f3eb0678224fa567 100644 (file)
@@ -107,6 +107,7 @@ bool GlobalError::InsertErrno(MsgType type, const char* Function,
                        msgSize = n + 1;
                else
                        msgSize *= 2;
+               free(S);
                return true;
        }
 
@@ -160,6 +161,7 @@ bool GlobalError::Insert(MsgType type, const char* Description,
                        msgSize = n + 1;
                else
                        msgSize *= 2;
+               free(S);
                return true;
        }