SF Bug Tracker id 3496581 - Memory leak in getServiceList
Submitted: Fabrice Fontaine ( ffontaine ) - 2012-03-03 08:43:23 PST serviceNodeList is not freed if current->next = malloc(sizeof(service_info)); returns NULL.
This commit is contained in:
parent
a79a149e6a
commit
71e77a5b27
@ -2,6 +2,15 @@
|
|||||||
Version 1.6.16
|
Version 1.6.16
|
||||||
*******************************************************************************
|
*******************************************************************************
|
||||||
|
|
||||||
|
2012-03-05 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||||
|
|
||||||
|
SF Bug Tracker id 3496581 - Memory leak in getServiceList
|
||||||
|
|
||||||
|
Submitted: Fabrice Fontaine ( ffontaine ) - 2012-03-03 08:43:23 PST
|
||||||
|
|
||||||
|
serviceNodeList is not freed if
|
||||||
|
current->next = malloc(sizeof(service_info)); returns NULL.
|
||||||
|
|
||||||
2012-02-29 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
2012-02-29 Fabrice Fontaine <fabrice.fontaine(at)orange.com>
|
||||||
|
|
||||||
SF Bug Tracker id 3495616 - Memory leak in ixmlElement_setAttributeNS
|
SF Bug Tracker id 3495616 - Memory leak in ixmlElement_setAttributeNS
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright (c) 2000-2003 Intel Corporation
|
* Copyright (c) 2000-2003 Intel Corporation
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
|
* Copyright (c) 2012 France Telecom All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions are met:
|
* modification, are permitted provided that the following conditions are met:
|
||||||
@ -761,6 +762,7 @@ service_info *getServiceList(
|
|||||||
}
|
}
|
||||||
if (!current) {
|
if (!current) {
|
||||||
freeServiceList(head);
|
freeServiceList(head);
|
||||||
|
ixmlNodeList_free(serviceNodeList);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
current->next = NULL;
|
current->next = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user