diff options
-rw-r--r-- | include/mysys_err.h | 3 | ||||
-rw-r--r-- | mysys/errors.c | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/include/mysys_err.h b/include/mysys_err.h index e313d82eedf..b1a0f9d8904 100644 --- a/include/mysys_err.h +++ b/include/mysys_err.h @@ -69,7 +69,8 @@ extern const char *globerrs[]; /* my_error_messages is here */ #define EE_CANT_SEEK 33 #define EE_CANT_CHMOD 34 #define EE_CANT_COPY_OWNERSHIP 35 -#define EE_ERROR_LAST 35 /* Copy last error nr */ +#define EE_BADMEMORYRELEASE 36 +#define EE_ERROR_LAST 36 /* Copy last error nr */ /* Add error numbers before EE_ERROR_LAST and change it accordingly. */ diff --git a/mysys/errors.c b/mysys/errors.c index 45a77d8c129..741d80753bc 100644 --- a/mysys/errors.c +++ b/mysys/errors.c @@ -55,7 +55,8 @@ const char *globerrs[GLOBERRS]= "Can't change permissions of the file '%s' (Errcode: %M)", "Can't seek in file '%s' (Errcode: %M)", "Can't change mode for file '%s' to 0x%lx (Errcode: %M)", - "Warning: Can't copy ownership for file '%s' (Errcode: %M)" + "Warning: Can't copy ownership for file '%s' (Errcode: %M)", + "Failed to release memory pointer %p, %zu bytes (Errcode: %M)" }; void init_glob_errs(void) @@ -101,6 +102,7 @@ void init_glob_errs() EE(EE_CANT_SEEK) = "Can't seek in file '%s' (Errcode: %M)"; EE(EE_CANT_CHMOD) = "Can't change mode for file '%s' to 0x%lx (Errcode: %M)"; EE(EE_CANT_COPY_OWNERSHIP)= "Warning: Can't copy ownership for file '%s' (Errcode: %M)"; + EE(EE_BADMEMORYRELEASE)= "Failed to release memory pointer %p, %zu bytes (Errcode: %M)"; } #endif |