git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8481
91ce42f0-d328-0410-95d8-
f526ca767f89
#ifdef HAVE_READLINE
#define READLINE_LIBRARY 1
-#undef free
#include "readline.h"
#include "history.h"
if (line == NULL) {
do_history = 0;
rl_catch_signals = 0; /* do it ourselves */
+ /* Here, readline does ***real*** malloc
+ * so, be we have to use the real free
+ */
line = readline((char *)prompt); /* cast needed for old readlines */
if (!line) {
exit(1);
if (do_history) {
add_history(line);
}
- free(line);
+ actuallyfree(line); /* allocated by readline() malloc */
line = NULL;
}
return 1;
mixed priorities
General:
+19Feb09
+ebl Fix #1226 about bconsole segfault when using readline()
18Feb09
kes Apply Eric's next-beta.patch that enables 64 bit FileIds and
adds new columns to the catalog.