diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2002-07-03 10:20:45 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2002-07-03 10:20:45 +0000 |
commit | 010ad01ab371d3ed4d3478c68c7414b5e5fd0594 (patch) | |
tree | 86afc1adf398b012950556615ecddf5497637f60 /pciusb.c | |
parent | 4e2baf1f6009ace506eae7ebbb61cf50e07dc505 (diff) | |
download | ldetect-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
Diffstat (limited to 'pciusb.c')
-rw-r--r-- | pciusb.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } } |