malloc problem in master

There is some problem with Bro in master, if you start it without any arguments it throws a malloc error.

[seth@Blake build (master)]$ gdb ./src/bro
(gdb) break malloc_error_break
Breakpoint 1 at 0x83126e977eb499
(gdb) r
Starting program: ./src/bro
bro(32651) malloc: *** error for object 0x1002721b8: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Breakpoint 1, 0x00007fff81a1c499 in malloc_error_break ()
(gdb) bt
#0 0x00007fff81a1c499 in malloc_error_break ()
#1 0x00007fff81946183 in free ()
#2 0x00000001000a0503 in load_files_with_prefix (orig_file=0x100b1a680 "-") at scan.l:628
#3 0x00000001000a0752 in browrap () at scan.l:813
#4 0x00000001000a4048 in brolex () at ./src/
#5 0x000000010008f10e in yyparse () at
#6 0x00000001000a6bea in main (argc=1, argv=0x7fff5fbfed90) at ./src/

Looks like it might be something might be wrong in the load_files_with_prefix function?


Found and fixed. Push forthcoming.