summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-07-03 10:20:45 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-07-03 10:20:45 +0000
commit010ad01ab371d3ed4d3478c68c7414b5e5fd0594 (patch)
tree86afc1adf398b012950556615ecddf5497637f60
parent4e2baf1f6009ace506eae7ebbb61cf50e07dc505 (diff)
downloadldetect-010ad01ab371d3ed4d3478c68c7414b5e5fd0594.tar
ldetect-010ad01ab371d3ed4d3478c68c7414b5e5fd0594.tar.gz
ldetect-010ad01ab371d3ed4d3478c68c7414b5e5fd0594.tar.bz2
ldetect-010ad01ab371d3ed4d3478c68c7414b5e5fd0594.tar.xz
ldetect-010ad01ab371d3ed4d3478c68c7414b5e5fd0594.zip
ifree(e->text) to prevent mem leak with usb
-rw-r--r--pciusb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pciusb.c b/pciusb.c
index dc49c94..9874f4c 100644
--- a/pciusb.c
+++ b/pciusb.c
@@ -117,6 +117,7 @@ extern int pciusb_find_modules(struct pciusb_entries *entries, const char *fpciu
q = strchr(p, '\t');
}
e->module = strcmp(p, "unknown") ? strndup(p,q-p-1) : NULL;
+ ifree(e->text); /* usb.c set it so that we display something when usbtable doesn't refer that hw*/
e->text = strndup(q+2, strlen(q)-4);
}
}