summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c14cc49)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
/* Free the allocated memory */
free(cut_path);
cut_path = NULL;
/* Free the allocated memory */
free(cut_path);
cut_path = NULL;
/* Allocate memory for the resolved path if necessary */
if (resolved_path == NULL) {
/* Allocate memory for the resolved path if necessary */
if (resolved_path == NULL) {
/* Free the allocated memory */
free(cut_path);
free(try_path_prev);
/* Free the allocated memory */
free(cut_path);
free(try_path_prev);
+ cut_path = NULL;
+ try_path_prev = NULL;
/*
* Else, we just copy the path in our resolved_path to
* return it as is
/*
* Else, we just copy the path in our resolved_path to
* return it as is