Browse Source

breakp.c: repair nonworking function dbfree()

pre-master-46
h_vogt 13 years ago
committed by rlar
parent
commit
777fe07e83
  1. 10
      src/frontend/breakp.c

10
src/frontend/breakp.c

@ -292,15 +292,23 @@ com_sttus(wordlist *wl)
}
/* free the dbcomm structure which has been defined in
* function settrace() in breakp2.c
*/
void
dbfree(struct dbcomm *db)
{
struct dbcomm *dd, *dn;
for (dd = db; dd; dd = dn) {
dn = dd->db_also;
dn = dd->db_next;
tfree(dd->db_nodename1);
tfree(dd->db_nodename2);
if (dd->db_also) {
dbfree(dd->db_also);
dd->db_also = NULL;
}
tfree(dd);
}
}

Loading…
Cancel
Save