commit | a1bec0dfdb53774fbc9e0f082a85562a5a9b02e2 | [log] [tgz] |
---|---|---|
author | Lucas De Marchi <lucas.demarchi@intel.com> | Thu Feb 26 03:38:52 2015 -0300 |
committer | Lucas De Marchi <lucas.demarchi@intel.com> | Thu Feb 26 03:40:47 2015 -0300 |
tree | 0a53da6e49f371ff852394bd8e7dca2c5c8c18d0 | |
parent | 0bcdef97009a99fb9ef8426e3fef72b69f0dd156 [diff] |
depmod: fix leak in case of malloc(0) malloc(0) can return != NULL. We need to pass the pointer to free(). This happens if index__haschildren(node) returned true, but child_count is set to 0.